X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/c44cf58551f939288739e1c4edd2caf12e23fa90..HEAD:/edit/page.js diff --git a/edit/page.js b/edit/page.js index f9bfd62..8aa2890 100644 --- a/edit/page.js +++ b/edit/page.js @@ -19,9 +19,10 @@ CKEDITOR.plugins.add('inlinesave', { // empty line is equivalent to a paragraph break body = body.replace(/
\s*
/g, '

'); // keep names and preceding abbreviations together - body = body.replace(/\b((?:dhr|mw|me?vr|mr?s?)\.)\s+(?=[A-Z])/ig, '$1 '); + body = body.replace(/\b((?:[Dd]hr|[Mm](?:w|e?vr|r|r?ss?)|[A-Z])\.)\s+(?=[A-Zdtv])/g, '$1 '); // wrap long line after each sentence body = body.replace(/^(\t*).{73,}/mg, function (line, indent) { + if (/^