mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
Fix DeprecationWarning about 'invalid escape sequence' in tools/docs Python scripts (#2281)
This commit is contained in:
parent
f980d76d38
commit
964ab956e0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user