From 5dce72d419288969cfb82ce105da111aeac25b55 Mon Sep 17 00:00:00 2001 From: John McLear Date: Fri, 23 Jan 2015 01:47:12 +0000 Subject: [PATCH] chrome list handling fix for #2412 --- src/static/js/contentcollector.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/static/js/contentcollector.js b/src/static/js/contentcollector.js index 1f0620fef..bb20c669d 100644 --- a/src/static/js/contentcollector.js +++ b/src/static/js/contentcollector.js @@ -554,7 +554,9 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas } else if ((tname == "div" || tname == "p") && cls && cls.match(/(?:^| )ace-line\b/)) { - oldListTypeOrNull = (_enterList(state, type) || 'none'); + // This has undesirable behavior in Chrome but is right in other browsers. + // See https://github.com/ether/etherpad-lite/issues/2412 for reasoning + if(!abrowser.chrome) oldListTypeOrNull = (_enterList(state, type) || 'none'); } if (className2Author && cls) {