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:
Jon Turney 2019-08-12 19:27:10 +01:00
parent b2990cae9e
commit 8922b85d6b
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
1 changed files with 3 additions and 1 deletions

View File

@ -297,6 +297,8 @@ def synopsis(c, t):
# preprocessor # directives, structs, comments in square brackets
funcsynopsisinfo = lxml.etree.SubElement(funcsynopsis, 'funcsynopsisinfo')
funcsynopsisinfo.text = l.strip() + '\n'
elif re.match('[Ll]ink with', l):
pass
else:
s = s + l
@ -312,7 +314,7 @@ def synopsis(c, t):
if s.strip():
print("surplus synopsis '%s'" % s, file=sys.stderr)
raise
exit(1)
def synopsis_for_prototype(funcsynopsis, s):
s = s.strip()