De-italicize some commas

This commit is contained in:
Domenic Denicola 2020-12-26 15:39:39 -05:00
commit 08e0d0d9a8

View file

@ -209,6 +209,7 @@ function getBodyXML(chapter, book, contentEl) {
xml = xml.replace(/,”<\/p>/g, ".”</p>");
xml = xml.replace(/<p>(.*),<\/p>/g, "<p>$1.</p>");
xml = xml.replace(/(\w+)(\w+)/g, "$1$2");
xml = xml.replace(/<em>([a-z]+), ([a-z]+)<\/em>/g, "<em>$1</em>, <em>$2</em>");
// Similar problems occur in Ward with <b> and <strong> as do in Worm with <em>s
xml = xml.replace(/<b \/>/g, "");