Fix some hyphens to become em dashes at the beginning of italicized quotes
This commit is contained in:
parent
176d88eea2
commit
91f02bd029
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ function getBodyXML(chapter, contentEl) {
|
|||
|
||||
// Fixes dashes
|
||||
xml = xml.replace(/ – /g, "—");
|
||||
xml = xml.replace(/“-/g, "“—");
|
||||
xml = xml.replace(/“((?:<em>)?)-/g, "“$1—");
|
||||
xml = xml.replace(/-[,.]?”/g, "—”");
|
||||
xml = xml.replace(/-(!|\?)”/g, "—$1”");
|
||||
xml = xml.replace(/-[,.]?<\/em>”/g, "—</em>”");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue