[sword-svn] r406 - trunk/modules/python
chrislit at crosswire.org
chrislit at crosswire.org
Thu Oct 11 10:40:18 MST 2012
Author: chrislit
Date: 2012-10-11 10:40:18 -0700 (Thu, 11 Oct 2012)
New Revision: 406
Modified:
trunk/modules/python/usfm2osis.py
Log:
hopefully fixed crash on \cp
Modified: trunk/modules/python/usfm2osis.py
===================================================================
--- trunk/modules/python/usfm2osis.py 2012-10-10 04:21:50 UTC (rev 405)
+++ trunk/modules/python/usfm2osis.py 2012-10-11 17:40:18 UTC (rev 406)
@@ -630,7 +630,7 @@
if cp:
ctext = re.sub(r'\\cp\s+(.+?)\\cp*', '', ctext, flags=re.DOTALL)
cp = cp.group(1)
- ctext = re.sub(r'"\$BOOK\$\.([^"\.]+)"', '"$BOOK$.'+ca+'"', ctext)
+ ctext = re.sub(r'"\$BOOK\$\.([^"\.]+)"', '"$BOOK$.'+cp+'"', ctext)
ca = re.search(r'\\ca\s+(.+?)\\ca\*', ctext)
if ca:
ctext = re.sub(r'\\ca\s+(.+?)\\ca*', '', ctext, flags=re.DOTALL)
More information about the sword-cvs
mailing list