diff --git a/lib/convert-worker.js b/lib/convert-worker.js index db0d832..1a1e64d 100644 --- a/lib/convert-worker.js +++ b/lib/convert-worker.js @@ -135,7 +135,7 @@ function getBodyXML(chapter, contentEl) { // If they show up three in a row, then let them live. Otherwise, they die. // Also remove any run of them after a period. xml = xml.replace(/([^\xA0])\xA0\xA0?([^\xA0])/g, "$1 $2"); - xml = xml.replace(/\.\xA0+\s*/, ". "); + xml = xml.replace(/\.\x20*\xA0[\xA0\x20]*/, ". "); function fixEms() { // Fix recurring broken-up or erroneous s