More <em> work
This commit is contained in:
parent
33aaecb2ce
commit
baa98156b1
1 changed files with 2 additions and 2 deletions
|
|
@ -149,8 +149,8 @@ function getBodyXml(chapter, contentEl) {
|
|||
// Fix recurring broken-up or erroneous <em>s
|
||||
xml = xml.replace(/<\/em>‘s/g, "’s</em>")
|
||||
xml = xml.replace(/<\/em><em>/g, "");
|
||||
xml = xml.replace(/<em>([^A-Za-z])<\/em>/g, "$1");
|
||||
xml = xml.replace(/<\/em>\. <em>/g, ". ");
|
||||
xml = xml.replace(/<em>(\s?\s?[^A-Za-z]\s?\s?)<\/em>/g, "$1");
|
||||
xml = xml.replace(/<\/em>(\s?\s?[^A-Za-z]\s?\s?)<em>/g, "$1");
|
||||
xml = xml.replace(/“<em>([^>]+)<\/em>(!|\?|\.)”/g, "“<em>$1$2<\/em>”");
|
||||
|
||||
// Fix recurring poor closing quotes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue