Fix end-of-thought punctuation being left out of the <em>
This commit is contained in:
parent
baa98156b1
commit
5d86661c55
1 changed files with 1 additions and 0 deletions
|
|
@ -152,6 +152,7 @@ function getBodyXml(chapter, contentEl) {
|
|||
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>”");
|
||||
xml = xml.replace(/<p><em>([^>]+)<\/em>(!|\?|\.)<\/p>/g, "<p><em>$1$2<\/em></p>");
|
||||
|
||||
// Fix recurring poor closing quotes
|
||||
xml = xml.replace(/“<\/p>/g, "”</p>");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue