\w_ replaced with \w, thanks Osman

This commit is contained in:
mdipierro committed 2012-08-15 09:12:55 -05:00
1 parent 91c88d56eb
commit f25e92d443
6 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -139,7 +139,7 @@ def render(text,
text = regex_noindent.sub('\n\\\\noindent \g<t>',text)
### fix paths in images
regex=re.compile('\\\\_[\w_]*\.(eps|png|jpg|gif)')
regex=re.compile('\\\\_\w*\.(eps|png|jpg|gif)')
while True:
match=regex.search(text)
if not match: break