Convert usfm bibles into gemtext (python library/utility)
clean up apostrophe-s spacing
| -rwxr-xr-x | usfm2gmi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usfm2gmi.py b/usfm2gmi.py index 87e99af..eccd2ab 100755 --- a/usfm2gmi.py +++ b/usfm2gmi.py @@ -127,7 +127,7 @@ def convert(line, printStrongs=False): elif 'x-morph="' in word: continue # Remove those extra spaces that sneak in. - elif word in [',', '.', ';', '”', ',”', '.”', '?”', ')', ':', '!', '?', '.’', '.’”', '?’”', '?’', ';”', '!”', ');', '),']: + elif word in [',', '.', ';', '”', ',”', '.”', '?”', ')', ':', '!', '?', '.’', '.’”', '?’”', '?’', ';”', '!”', ');', '),', '’s', '.)']: if out[-1] == ' ': out = out[:-1] + word + ' ' else: |