about summary refs log tree commit diff
path: root/usfm2gmi.py
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2021-02-25 19:27:44 -0500
committerZach DeCook <zachdecook@librem.one>2021-02-25 19:27:44 -0500
commitbefa6642c8d5c2c01d0715074ed0482c5f0ed35d (patch)
tree2dfa5f9cc3d7a8e08f8f139c263c1428f32b57db /usfm2gmi.py
parentf3a3cd474a4443c92e69579216f6e3d8f70568d7 (diff)
downloadusfm2gmi-befa6642c8d5c2c01d0715074ed0482c5f0ed35d.tar.gz
nd: add kludge so this works better (against the spec?)
Diffstat (limited to 'usfm2gmi.py')
-rwxr-xr-xusfm2gmi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/usfm2gmi.py b/usfm2gmi.py
index 0337153..54685f7 100755
--- a/usfm2gmi.py
+++ b/usfm2gmi.py
@@ -18,7 +18,7 @@ def smallcaps(word):
 def convert(line):
   """Convert a string to a list of tuples, each a token"""
   # TODO: preserve the lack of whitespace before a backslash.
-  split = line.replace('\\', ' \\').split()
+  split = line.replace('\\', ' \\').replace('\\nd*','\\nd* ').split()
   out = ''
   nd = False
   if len(split) == 0: