Commit 8c215b1f authored by Andreas Jung's avatar Andreas Jung

Changed pattern for detecting _..._ text. We now require that

at least one space precedes the first underscore. This is neccessary
for handling underscores inside DTML vars.
parent a725bfcb
......@@ -632,7 +632,7 @@ class DocumentClass:
def doc_underline(self,
s,
expr=re.compile("\s*\_([%s0-9\s\.,\?\/]+)\_" % letters).search):
expr=re.compile("\s+\_([%s0-9\s\.,\?\/]+)\_" % letters).search):
result = expr(s)
if result:
......
......@@ -914,7 +914,7 @@ class DocumentClass:
def doc_underline(self,
s,
expr=re.compile(r"\s*\_([%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