diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-02-25 19:27:44 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-02-25 19:27:44 -0500 |
| commit | befa6642c8d5c2c01d0715074ed0482c5f0ed35d (patch) | |
| tree | 2dfa5f9cc3d7a8e08f8f139c263c1428f32b57db /usfm2gmi.py | |
| parent | f3a3cd474a4443c92e69579216f6e3d8f70568d7 (diff) | |
| download | usfm2gmi-befa6642c8d5c2c01d0715074ed0482c5f0ed35d.tar.gz | |
nd: add kludge so this works better (against the spec?)
Diffstat (limited to 'usfm2gmi.py')
| -rwxr-xr-x | usfm2gmi.py | 2 |
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: |
