chrome list handling fix for #2412

pull/2482/head
John McLear 2015-01-23 01:47:12 +00:00
parent 6fd0285d4d
commit 5dce72d419
1 changed files with 3 additions and 1 deletions

View File

@ -554,7 +554,9 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
} }
else if ((tname == "div" || tname == "p") && cls && cls.match(/(?:^| )ace-line\b/)) 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) if (className2Author && cls)
{ {