Fix some em dashes in Ward Last 20.e5
This commit is contained in:
parent
89789724d1
commit
a89414392e
1 changed files with 3 additions and 2 deletions
|
|
@ -383,11 +383,12 @@ function fixEmDashes(xml) {
|
|||
xml = xml.replace(/“((?:<em>)?)-/g, "“$1—");
|
||||
xml = xml.replace(/-[,.]?”/g, "—”");
|
||||
xml = xml.replace(/-(!|\?)”/g, "—$1”");
|
||||
xml = xml.replace(/-[,.]?<\/em>”/g, "—</em>”");
|
||||
xml = xml.replace(/-[,.]?<\/([a-z]+)>”/g, "—</$1>”");
|
||||
xml = xml.replace(/-“/g, "—”");
|
||||
xml = xml.replace(/<p>-/g, "<p>—");
|
||||
xml = xml.replace(/-<\/p>/g, "—</p>");
|
||||
xml = xml.replace(/-<\/em><\/p>/g, "—</em></p>");
|
||||
xml = xml.replace(/-<br \/>/g, "—<br />");
|
||||
xml = xml.replace(/-<\/([a-z]+)><\/p>/g, "—</$1></p>");
|
||||
xml = xml.replace(/\s?\s?–\s?\s?/g, "—");
|
||||
xml = xml.replace(/-\s\s?/g, "—");
|
||||
xml = xml.replace(/\s?\s-/g, "—");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue