Commit 964ab956 by Yannick Jadoul Committed by GitHub

Fix DeprecationWarning about 'invalid escape sequence' in tools/docs Python scripts (#2281)

parent f980d76d
......@@ -238,7 +238,7 @@ latex_elements = {
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
'preamble': '\DeclareUnicodeCharacter{00A0}{}',
'preamble': r'\DeclareUnicodeCharacter{00A0}{}',
# Latex figure (float) alignment
#'figure_align': 'htbp',
......
......@@ -106,8 +106,8 @@ def process_comment(comment):
result = result2
# Doxygen tags
cpp_group = '([\w:]+)'
param_group = '([\[\w:\]]+)'
cpp_group = r'([\w:]+)'
param_group = r'([\[\w:\]]+)'
s = result
s = re.sub(r'\\c\s+%s' % cpp_group, r'``\1``', s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment