Fix end-of-line commas that should be periods.

This commit is contained in:
Domenic Denicola 2020-11-29 15:45:28 -05:00
commit 79efec7080
2 changed files with 6 additions and 4 deletions

View file

@ -203,6 +203,8 @@ function getBodyXML(chapter, book, contentEl) {
xml = xml.replace(/([Kk])ay(?!)/g, "$1ay");
xml = xml.replace(/<em>(Why|What|Who|How|Where|When)<\/em>\?/g, "<em>$1?</em>");
xml = xml.replace(/,<\/em>/g, "</em>,");
xml = xml.replace(/,”<\/p>/g, ".”</p>");
xml = xml.replace(/<p>(.*),<\/p>/g, "<p>$1.</p>");
// Similar problems occur in Ward with <b> and <strong> as do in Worm with <em>s
xml = xml.replace(/<b \/>/g, "");

View file

@ -3967,10 +3967,6 @@
"before": "lowed to do that, miright",
"after": "lowed to do that, miright"
},
{
"before": "path was clear,",
"after": "path was clear."
},
{
"before": "hard, dont you</em>?",
"after": "hard, dont you?</em>"
@ -6229,6 +6225,10 @@
{
"before": "Foil-Hookline",
"after": "FoilHookline"
},
{
"before": "“Fired through a hole I made in my fist.</p>",
"after": "“Fired through a hole I made in my fist.”</p>"
}
],
"https://www.parahumans.net/2019/02/05/blinding-11-12/": [