Re: [PATCH v4 05/18] scripts/qapi: Move doc-comment whitespace stripping to doc.py

2020-08-06 Thread Markus Armbruster
Peter Maydell writes: > As we accumulate lines from doc comments when parsing the JSON, the > QAPIDoc class generally strips leading and trailing whitespace using > line.strip() when it calls _append_freeform(). This is fine for > texinfo, Texinfo > but for rST leading whitespace is s

Re: [PATCH v4 05/18] scripts/qapi: Move doc-comment whitespace stripping to doc.py

2020-03-10 Thread Richard Henderson
On 3/9/20 8:43 AM, Peter Maydell wrote: > As we accumulate lines from doc comments when parsing the JSON, the > QAPIDoc class generally strips leading and trailing whitespace using > line.strip() when it calls _append_freeform(). This is fine for > texinfo, but for rST leading whitespace is signif

[PATCH v4 05/18] scripts/qapi: Move doc-comment whitespace stripping to doc.py

2020-03-09 Thread Peter Maydell
As we accumulate lines from doc comments when parsing the JSON, the QAPIDoc class generally strips leading and trailing whitespace using line.strip() when it calls _append_freeform(). This is fine for texinfo, but for rST leading whitespace is significant. We'd like to move to having the text in