diff options
Diffstat (limited to 'docs/tools/dump_format_style.py')
-rw-r--r-- | docs/tools/dump_format_style.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/tools/dump_format_style.py b/docs/tools/dump_format_style.py index 6e14939498155..81a5af6ef42bf 100644 --- a/docs/tools/dump_format_style.py +++ b/docs/tools/dump_format_style.py @@ -19,7 +19,6 @@ def substitute(text, tag, contents): return re.sub(pattern, '%s', text, flags=re.S) % replacement def doxygen2rst(text): - text = re.sub(r'([^/\*])\*', r'\1\\*', text) text = re.sub(r'<tt>\s*(.*?)\s*<\/tt>', r'``\1``', text) text = re.sub(r'\\c ([^ ,;\.]+)', r'``\1``', text) text = re.sub(r'\\\w+ ', '', text) @@ -65,7 +64,7 @@ class NestedField: self.comment = comment.strip() def __str__(self): - return '* ``%s`` %s' % (self.name, doxygen2rst(self.comment)) + return '\n* ``%s`` %s' % (self.name, doxygen2rst(self.comment)) class Enum: def __init__(self, name, comment): |