diff options
Diffstat (limited to 'docs/doxygen/swig_doc.py')
-rw-r--r-- | docs/doxygen/swig_doc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/doxygen/swig_doc.py b/docs/doxygen/swig_doc.py index 307920d776..6b74c0155f 100644 --- a/docs/doxygen/swig_doc.py +++ b/docs/doxygen/swig_doc.py @@ -80,11 +80,13 @@ class Block2(object): def utoascii(text): """ - Convert unicode text into ascii and escape quotes. + Convert unicode text into ascii and escape quotes and backslashes. """ if text is None: return '' out = text.encode('ascii', 'replace') + # swig will require us to replace blackslash with 4 backslashes + out = out.replace(b'\\', b'\\\\\\\\') out = out.replace(b'"', b'\\"').decode('ascii') return str(out) |