From befa6642c8d5c2c01d0715074ed0482c5f0ed35d Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 25 Feb 2021 19:27:44 -0500 Subject: nd: add kludge so this works better (against the spec?) --- usfm2gmi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usfm2gmi.py') 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: -- cgit 1.4.1