mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-24 18:22:24 -05:00
Attempt to fix URL in free text matching bug.
This commit is contained in:
parent
6bcd9210ba
commit
d8cc52a1bc
3
gen.py
3
gen.py
@ -249,7 +249,8 @@ def buildPDF( file, nr ):
|
||||
return False
|
||||
|
||||
#detect http urls and escape them to make them breakable
|
||||
error, desc = executeCommand('''sed -i 's|\([\s"]\)\(http://[^ "]*\)|\1\\path{\2}|g' /tmp/xepbuilder/xep-''' + nr + ".tex")
|
||||
# this should match all urls in free text; not the urls in xml:ns or so..so no " or ' in front.
|
||||
error, desc = executeCommand('''sed -i 's|\([\s"]\)\([^"]http://[^ "]*\)|\1\\path{\2}|g' /tmp/xepbuilder/xep-''' + nr + ".tex")
|
||||
if not checkError(error, desc):
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user