From 2a876e5e9ba917df2ddda33c58415130289a46dd Mon Sep 17 00:00:00 2001 From: Dan Bornstein Date: Tue, 13 Sep 2016 01:17:04 +0200 Subject: [PATCH] Ensure that all lines in the pad are marked with class `ace-line`. Without this change, lines that haven't ever been edited will have either an empty class or, in the case of list start lines, a class that begins with a space (because the `ace-line` before the space never got added). --- src/static/js/domline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/domline.js b/src/static/js/domline.js index 447c1497..a7501fcc 100644 --- a/src/static/js/domline.js +++ b/src/static/js/domline.js @@ -214,7 +214,7 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument) result.clearSpans = function() { html = []; - lineClass = ''; // non-null to cause update + lineClass = 'ace-line'; result.lineMarker = 0; };