makedocbook: Adjust inline whitespace to fix flake8 warnings
This commit is contained in:
parent
2521dd48d8
commit
999925b253
|
@ -378,7 +378,6 @@ def synopsis_for_prototype(funcsynopsis, s):
|
||||||
# sscanf, have very complex layout using nested tables and itemized lists, which
|
# sscanf, have very complex layout using nested tables and itemized lists, which
|
||||||
# it is best to parse in order to transform correctly.
|
# it is best to parse in order to transform correctly.
|
||||||
#
|
#
|
||||||
|
|
||||||
def refsect(t, s):
|
def refsect(t, s):
|
||||||
refsect = lxml.etree.SubElement(refentry, 'refsect1')
|
refsect = lxml.etree.SubElement(refentry, 'refsect1')
|
||||||
title = lxml.etree.SubElement(refsect, 'title')
|
title = lxml.etree.SubElement(refsect, 'title')
|
||||||
|
@ -790,6 +789,7 @@ def p_multitable(p):
|
||||||
p[0] = '<informaltable><tgroup cols="' + str(len(colfrac)) + '">' + colspec + header + body + '</tgroup></informaltable>'
|
p[0] = '<informaltable><tgroup cols="' + str(len(colfrac)) + '">' + colspec + header + body + '</tgroup></informaltable>'
|
||||||
parser_verbose(p)
|
parser_verbose(p)
|
||||||
|
|
||||||
|
|
||||||
def p_error(t):
|
def p_error(t):
|
||||||
sys.exit('parse error at line %d, token %s, next token %s' % (t.lineno, t, parser.token()))
|
sys.exit('parse error at line %d, token %s, next token %s' % (t.lineno, t, parser.token()))
|
||||||
|
|
||||||
|
@ -831,7 +831,6 @@ def main(file):
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
options = OptionParser()
|
options = OptionParser()
|
||||||
options.add_option('-v', '--verbose', action='count', dest='verbose', default=0)
|
options.add_option('-v', '--verbose', action='count', dest='verbose', default=0)
|
||||||
|
|
Loading…
Reference in New Issue