diff --git a/newlib/doc/makedocbook.py b/newlib/doc/makedocbook.py index 4de20ef92..9c5615f22 100755 --- a/newlib/doc/makedocbook.py +++ b/newlib/doc/makedocbook.py @@ -450,9 +450,6 @@ command_dispatch_dict = { def line_markup_convert(p): s = p - # process the texinfo escape for an @ - s = s.replace('@@', '@') - # escape characters not allowed in XML s = s.replace('&', '&') s = s.replace('<', '<') @@ -482,6 +479,14 @@ def line_markup_convert(p): # very hacky way of dealing with @* to force a newline s = s.replace('@*', '') + # fail if there are unhandled texinfo commands + match = re.search(r'(? 3) and (s != p): print('%s-> line_markup_convert ->\n%s' % (p, s), file=sys.stderr) @@ -823,10 +828,6 @@ def main(file): print(s) - # warn about texinfo commands which didn't get processed - match = re.search(r'@[a-z*]+', s) - if match: - print('texinfo command %s remains in output' % match.group(), file=sys.stderr) # #