qemu/docs
Peter Maydell a69a6d4b4d scripts/qapi/parser.py: improve doc comment indent handling
Make the handling of indentation in doc comments more sophisticated,
so that when we see a section like:

Notes: some text
       some more text
          indented line 3

we save it for the doc-comment processing code as:

some text
some more text
   indented line 3

and when we see a section with the heading on its own line:

Notes:

some text
some more text
   indented text

we also accept that and save it in the same form.

If we detect that the comment document text is not indented as much
as we expect it to be, we throw a parse error.  (We don't complain
about over-indented sections, because for rST this can be legitimate
markup.)

The golden reference for the doc comment text is updated to remove
the two 'wrong' indents; these now form a test case that we correctly
stripped leading whitespace from an indented multi-line argument
definition.

We update the documentation in docs/devel/qapi-code-gen.txt to
describe the new indentation rules.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20200925162316.21205-6-peter.maydell@linaro.org>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Whitespace between sentences tweaked]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2020-09-29 17:55:39 +02:00
..
config
devel scripts/qapi/parser.py: improve doc comment indent handling 2020-09-29 17:55:39 +02:00
interop docs/: fix some comment spelling errors 2020-09-17 20:37:13 +02:00
specs docs/: fix some comment spelling errors 2020-09-17 20:37:13 +02:00
sphinx docs: automatically track manual dependencies 2020-08-21 06:30:41 -04:00
spin
system cphp: remove deprecated cpu-add command(s) 2020-09-29 02:14:30 -04:00
tools virtiofsd: document cache=auto default 2020-09-25 12:45:58 +01:00
user
COLO-FT.txt docs/: fix some comment spelling errors 2020-09-17 20:37:13 +02:00
amd-memory-encryption.txt docs: Fix broken links 2020-09-01 09:31:33 +02:00
barrier.txt
block-replication.txt
bootindex.txt
can.txt
ccid.txt
colo-proxy.txt
conf.py docs: automatically track manual dependencies 2020-08-21 06:30:41 -04:00
cpu-hotplug.rst
defs.rst.inc
generic-loader.txt
hyperv.txt i386/kvm: correct the meaning of '0xffffffff' value for hv-spinlocks 2020-09-18 13:49:54 -04:00
igd-assign.txt
image-fuzzer.txt
index.html.in meson: sphinx-build 2020-08-21 06:30:41 -04:00
index.rst
memory-hotplug.txt
meson.build meson: pass docdir option 2020-09-01 08:51:33 -04:00
microvm.rst
multi-thread-compression.txt
multiseat.txt
nvdimm.txt docs/nvdimm: add description of alignment requirement of device dax 2020-06-26 09:39:36 -04:00
pci_expander_bridge.txt
pcie.txt
pcie_pci_bridge.txt
pr-manager.rst
pvrdma.txt docs: Fix broken links 2020-09-01 09:31:33 +02:00
qcow2-cache.txt qcow2: Document the Extended L2 Entries feature 2020-08-25 08:33:20 +02:00
qdev-device-use.txt docs/qdev-device-use: Don't suggest -drive and -net can do USB 2020-09-03 09:58:39 +02:00
qemu-option-trace.rst.inc
qemu_logo.pdf
qemupciserial.inf
rdma.txt docs/: fix some comment spelling errors 2020-09-17 20:37:13 +02:00
replay.txt
spice-port-fqdn.txt
throttle.txt
u2f.txt hw/usb: Add U2F device autoscan to passthru mode 2020-08-31 08:23:39 +02:00
usb-storage.txt
usb2.txt
virtio-balloon-stats.txt
virtio-net-failover.rst
virtio-pmem.rst
xbzrle.txt docs/xbzrle: update 'cache miss rate' and 'encoding rate' to docs 2020-06-17 17:48:39 +01:00
xen-save-devices-state.txt