fenv: Update makedocbook for eae68bfc
Teach makedocbook how to handle some new things seen in the makedoc markup since eae68bfc: - 'link with' lines appearing in SYNOPSIS sections Also, don't raise a NoneType exception when there's something we don't know how to handle in a SYNOPSIS section, just exit.
This commit is contained in:
parent
b2990cae9e
commit
8922b85d6b
|
@ -297,6 +297,8 @@ def synopsis(c, t):
|
||||||
# preprocessor # directives, structs, comments in square brackets
|
# preprocessor # directives, structs, comments in square brackets
|
||||||
funcsynopsisinfo = lxml.etree.SubElement(funcsynopsis, 'funcsynopsisinfo')
|
funcsynopsisinfo = lxml.etree.SubElement(funcsynopsis, 'funcsynopsisinfo')
|
||||||
funcsynopsisinfo.text = l.strip() + '\n'
|
funcsynopsisinfo.text = l.strip() + '\n'
|
||||||
|
elif re.match('[Ll]ink with', l):
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
s = s + l
|
s = s + l
|
||||||
|
|
||||||
|
@ -312,7 +314,7 @@ def synopsis(c, t):
|
||||||
|
|
||||||
if s.strip():
|
if s.strip():
|
||||||
print("surplus synopsis '%s'" % s, file=sys.stderr)
|
print("surplus synopsis '%s'" % s, file=sys.stderr)
|
||||||
raise
|
exit(1)
|
||||||
|
|
||||||
def synopsis_for_prototype(funcsynopsis, s):
|
def synopsis_for_prototype(funcsynopsis, s):
|
||||||
s = s.strip()
|
s = s.strip()
|
||||||
|
|
Loading…
Reference in New Issue