From 72511e8c4c191af4210fae374f8fcfb51ca0b15e Mon Sep 17 00:00:00 2001 From: boose_magoose Date: Wed, 13 Dec 2023 12:06:04 -0500 Subject: [PATCH] Not fully working --- main.py | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/main.py b/main.py index 15ad8ee..7ef5f92 100644 --- a/main.py +++ b/main.py @@ -22,11 +22,11 @@ logger.add('log.txt', level='WARNING') convert = dict([ ("Eccl", "Ecclesiastes"), ("Rom", "Romans"), -("2Tim", "2 Timothy"), -("2Pet", "2 Peter"), +("2Tim", "2Timothy"), +("2Pet", "2Peter"), ("Gen", "Genesis"), ("John", "John"), -("1Cor", "1 Corinthians"), +("1Cor", "1Corinthians"), ("Ezek", "Ezekiel"), ("Heb", "Hebrews"), ("Rev", "Revelation"), @@ -36,9 +36,9 @@ convert = dict([ ("Acts", "Acts"), ("Deut", "Deuteronomy"), ("Neh", "Nehemiah"), -("1Chr", "1 Chronicles"), -("2Kgs", "2 Kings"), -("2Cor", "2 Corinthians"), +("1Chr", "1Chronicles"), +("2Kgs", "2Kings"), +("2Cor", "2Corinthians"), ("Hos", "Hosea"), ("Exod", "Exodus"), ("Matt", "Matthew"), @@ -46,9 +46,9 @@ convert = dict([ ("Prov", "Proverbs"), ("Col", "Colossians"), ("Jer", "Jeremiah"), -("1John", "1 John"), +("1John", "1John"), ("Jas", "James"), -("1Tim", "1 Timothy"), +("1Tim", "1Timothy"), ("Amos", "Amos"), ("Mic", "Micah"), ("Dan", "Daniel"), @@ -58,40 +58,36 @@ convert = dict([ ("Zech", "Zechariah"), ("Phil", "Philippians"), ("Mark", "Mark"), -("2Thess", "2 Thessalonians"), +("2Thess", "2Thessalonians"), ("Jude", "Jude"), -("1Sam", "1 Samuel"), +("1Sam", "1Samuel"), ("Num", "Numbers"), ("Gal", "Galatians"), -("1Pet", "1 Peter"), +("1Pet", "1Peter"), ("Lev", "Leviticus"), -("2Chr", "2 Chronicles"), +("2Chr", "2Chronicles"), ("Lam", "Lamentations"), -("1Kgs", "1 Kings"), +("1Kgs", "1Kings"), ("Ezra", "Ezra"), ("Obad", "Obadiah"), ("Hab", "Habakkuk"), -("2Sam", "2 Samuel"), +("2Sam", "2Samuel"), ("Josh", "Joshua"), ("Judg", "Judges"), ("Ruth", "Ruth"), ("Esth", "Esther"), ("Phlm", "Philemon"), -("1Thess", "1 Thessalonians"), +("1Thess", "1Thessalonians"), ("Joel", "Joel"), ("Titus", "Titus"), -("3John", "3 John"), +("3John", "3John"), ("Zeph", "Zephaniah"), ("Song", "Song of Songs"), ("Hag", "Haggai"), -("Wis", "Wisdom of Solomon"), -("2John", "2 John"), -("2Macc", "2 Maccabees"), +("2John", "2John"), ("Nah", "Nahum"), -("Sir", "Ecclesiasticus"), ("Psa", "Psalms"), -("1Macc", "1 Maccabees"), -("2Peter", "2 Peter"), +("2Peter", "2Peter") ] ) @@ -396,6 +392,7 @@ class MyHTMLParser(HTMLParser): # Need this do the regex in self.clean does not pick # this up. Will be also cleaned in the same function. self.write_to_file('Passage: ') + if self.tag_type == 'end': self.write_to_file('\n\n')