about summary refs log tree commit diff
path: root/usfm2gmi.py
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2021-02-25 20:14:18 -0500
committerZach DeCook <zachdecook@librem.one>2021-02-25 20:14:18 -0500
commit5efacd000c0b2b19db9af6d3febb2369e271e030 (patch)
tree44e56d70f5233a75be4d90028817c280bf5482e1 /usfm2gmi.py
parentf3af18d9009ddf35dda0ef60237ce349d64bfcca (diff)
downloadusfm2gmi-5efacd000c0b2b19db9af6d3febb2369e271e030.tar.gz
titles: also convert remaining text
Diffstat (limited to 'usfm2gmi.py')
-rwxr-xr-xusfm2gmi.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/usfm2gmi.py b/usfm2gmi.py
index 516e72c..2f0f376 100755
--- a/usfm2gmi.py
+++ b/usfm2gmi.py
@@ -24,12 +24,12 @@ def convert(line):
   if len(split) == 0:
     return out
   elif split[0] in ['\\mt1','\\mt','\\ms','\\h']:
-    return '\n# ' + ' '.join(split[1:])
+    return '\n# ' + convert(' '.join(split[1:]))
   # TODO: parse as word for title tags in title line
   elif split[0] in ['\\mt2','\\s']:
-    return '\n## ' + ' '.join(split[1:])
+    return '\n## ' + convert(' '.join(split[1:]))
   elif split[0] in ['\\mt3','\\d']:
-    return '\n### ' + ' '.join(split[1:])
+    return '\n### ' + convert(' '.join(split[1:]))
   elif split[0] == '\\b':
     return '\n'
   elif split[0] == '\\rem':