From: Mischa POSLAWSKY Date: Thu, 25 Mar 2021 02:29:13 +0000 (+0100) Subject: edit/page: keep metadata headers unwrapped X-Git-Tag: v5.4~27 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/d9bc1341786807c30a2ab02674a8d3fa1132372c edit/page: keep metadata headers unwrapped Prefer all meta tags on the first line. --- diff --git a/edit/page.js b/edit/page.js index 3101ea1..8aa2890 100644 --- a/edit/page.js +++ b/edit/page.js @@ -22,6 +22,7 @@ CKEDITOR.plugins.add('inlinesave', { 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 (/^