Commit e4a5bed3 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Python indentation cleanup broke code generation

parent 3fd821c2
...@@ -10,7 +10,8 @@ http://www.gnu.org/software/libiconv for the list of possible encodings. ...@@ -10,7 +10,8 @@ http://www.gnu.org/software/libiconv for the list of possible encodings.
<option type='string' id='PROJECT_NAME' format='string' docs=' <option type='string' id='PROJECT_NAME' format='string' docs='
The PROJECT_NAME tag is a single word (or sequence of words) that should The PROJECT_NAME tag is a single word (or sequence of words) that should
identify the project. Note that if you do not use Doxywizard you need identify the project. Note that if you do not use Doxywizard you need
to put quotes around the project name if it contains spaces.' defval='My Project'/> to put quotes around the project name if it contains spaces.'
defval='My Project'/>
<option type='string' id='PROJECT_NUMBER' format='string' docs=' <option type='string' id='PROJECT_NUMBER' format='string' docs='
The PROJECT_NUMBER tag can be used to enter a project or revision number. The PROJECT_NUMBER tag can be used to enter a project or revision number.
This could be handy for archiving the generated documentation or This could be handy for archiving the generated documentation or
......
...@@ -31,7 +31,7 @@ def parseOption(node): ...@@ -31,7 +31,7 @@ def parseOption(node):
depends = node.getAttribute('depends') depends = node.getAttribute('depends')
setting = node.getAttribute('setting') setting = node.getAttribute('setting')
# replace \ by \\, replace " by \", and ' ' by a newline with end string and start string at next line # replace \ by \\, replace " by \", and ' ' by a newline with end string and start string at next line
docC = doc.strip().replace('\\','\\\\').replace('"','\\"').replace(' ','\\n"\n "') docC = doc.strip().replace('\\','\\\\').replace('"','\\"').replace(' ','\\n"\n\t\t\t"')
if len(setting)>0: if len(setting)>0:
print "#if %s" % (setting) print "#if %s" % (setting)
print " //----" print " //----"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment