diff --git a/app.py b/app.py
index df61a7b..2da9d02 100644
--- a/app.py
+++ b/app.py
@@ -18,6 +18,9 @@ Search highlighting
Styles
Bible Reading Plan
Bible Reader
+Rich:
on each comma
+find: handle ending with :
+find: handle ending with ,
"""
@@ -259,9 +262,10 @@ def return_dict_rich(ref, defs):
response = ""
for e in defs:
response += e + "
"
- # return (header.read() + response_html.read().format(passage = ref.capitalize(), text = response) + css.read())
return (
- response_html.read().format(passage=ref.capitalize(), text=response)
+ response_html.read().format(
+ chapter=ref.split(":")[0], passage=ref.capitalize(), text=response
+ )
+ css.read()
)
@@ -353,7 +357,12 @@ def response_rich(scripture):
verse = str(scripture[idx_verse])
text = str(scripture[idx_text])
passage = bookname + " " + chapter + ":" + verse
- return response_html.read().format(passage=passage, text=text) + css.read()
+ return (
+ response_html.read().format(
+ chapter=passage.split(":")[0], passage=passage, text=text
+ )
+ + css.read()
+ )
def response_single(scripture):
diff --git a/html/index.html b/html/index.html
index 45a61d8..aabd950 100644
--- a/html/index.html
+++ b/html/index.html
@@ -17,12 +17,7 @@ html{