Skip to content

Commit

Permalink
Fix DeprecationWarning about 'invalid escape sequence' in tools/docs …
Browse files Browse the repository at this point in the history
…Python scripts (pybind#2281)
  • Loading branch information
YannickJadoul authored Jul 10, 2020
1 parent f980d76 commit 964ab95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
#'pointsize': '10pt',

# Additional stuff for the LaTeX preamble.
'preamble': '\DeclareUnicodeCharacter{00A0}{}',
'preamble': r'\DeclareUnicodeCharacter{00A0}{}',

# Latex figure (float) alignment
#'figure_align': 'htbp',
Expand Down
4 changes: 2 additions & 2 deletions tools/mkdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 964ab95

Please sign in to comment.