Convert usfm bibles into gemtext (python library/utility)
space correction: more
Zach DeCook 2021-07-11
parent 739609a · commit 2e7b64f
-rwxr-xr-xusfm2gmi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/usfm2gmi.py b/usfm2gmi.py
index b8c54f6..24d1d5e 100755
--- a/usfm2gmi.py
+++ b/usfm2gmi.py
@@ -113,7 +113,7 @@ def convert(line):
spl = word.split('|')
out += spl[0] + ' ' #superscript(spl[1][8:-1]) + ' '
# Remove those extra spaces that sneak in.
- elif word in [',', '.', ';', '”', ',”', '.”', '?”', ')', ':', '!', '?', '.’', '.’”', '?’”', '?’', ';”']:
+ elif word in [',', '.', ';', '”', ',”', '.”', '?”', ')', ':', '!', '?', '.’', '.’”', '?’”', '?’', ';”', '!”', ');', '),']:
if out[-1] == ' ':
out = out[:-1] + word + ' '
else: