Fix inconsistently-bolded colons in Ward text conversations

This commit is contained in:
Domenic Denicola 2020-11-14 18:57:51 -05:00
commit aea63ba055

View file

@ -208,6 +208,7 @@ function getBodyXML(chapter, book, contentEl) {
xml = xml.replace(/<strong>@<\/strong>/g, "@");
xml = xml.replace(/<br \/>(\s*)<\/strong>/g, "</strong><br />$1");
xml = xml.replace(/(\s*)<\/strong>/g, "</strong>$1");
xml = xml.replace(/><strong>(.*)<\/strong>:</g, "><strong>$1:</strong></");
// No need for line breaks before paragraph ends
// These often occur with the <br>s inside <b>/<strong>/<em>/<i> fixed above.