summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2009-09-25 13:24:40 +0100
committerDaniel P. Berrange <berrange@redhat.com>2009-09-28 14:08:25 +0100
commit4588a49e12675a0d74407d846cf763ecd941abec (patch)
treeb04d01c29de3e70e33d07192a987c0d143c01b87 /Makefile.am
parent32c20d1f0688cc64dc2a142dd2d05a533e9dd454 (diff)
downloadlibvirt-python-split-4588a49e12675a0d74407d846cf763ecd941abec.tar.gz
libvirt-python-split-4588a49e12675a0d74407d846cf763ecd941abec.tar.xz
libvirt-python-split-4588a49e12675a0d74407d846cf763ecd941abec.zip
Fix API doc extractor to stop munging comment formatting
The python method help docs are copied across from the C funtion comments, but in the process all line breaks and indentation was being lost. This made the resulting text and code examples completely unreadable. Both the API doc extractor and the python generator were destroying whitespace & this fixes them to preserve it exactly. * docs/apibuild.py: Preserve all whitespace when extracting function comments. Print function comment inside a <![CDATA[ section to fully preserve all whitespace. Look for the word 'returns' to describe return values, instead of 'return' to avoid getting confused with code examples including the C 'return' statement. * python/generator.py: Preserve all whitespace when printing function help docs * src/libvirt.c: Change any return parameter indicated by 'return' to be 'returns', to avoid confusing the API extractor * docs/libvirt-api.xml: Re-build for fixed descriptions
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions