Commit 299c6e41 authored by Andreas Jung's avatar Andreas Jung

fixed problem with two _ inside a string

parent a5366acb
......@@ -914,7 +914,7 @@ class DocumentClass:
def doc_underline(self,
s,
expr=re.compile(r"\_([%s0-9\s\.,\?]+)\_" % letters).search):
expr=re.compile(r"\s*\_([%s0-9\s\.,\?]+)\_" % letters).search):
result = expr(s)
if result:
......
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