Fix backward closing single quotation marks

This commit is contained in:
Domenic Denicola 2020-11-07 19:46:52 -05:00
commit 6ee5fb9ef6
2 changed files with 3 additions and 18 deletions

View file

@ -196,6 +196,7 @@ function getBodyXML(chapter, book, contentEl) {
fixEms();
fixQuotesAndApostrophes();
fixEms();
xml = xml.replace(/<em>([^<]+)<\/em>/g, "<em>$1</em>");
xml = xml.replace(/I”m/g, "Im");
// Similar problems occur in Ward with <b> and <strong> as do in Worm with <em>s