From a2bf577393116557b02df978f55d9b44d1e8f715 Mon Sep 17 00:00:00 2001 From: odony Date: Wed, 25 Jul 2012 14:30:33 +0300 Subject: [PATCH] Fix #769 - wonky bug with pasted lists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After 6507614e459dac868d3c76355ca013d13132bc79 the contentcollector does not properly "exit" lists back to the `none` listType anymore. The repro steps on #769 seem to pass correctly after this change. --- src/static/js/contentcollector.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/static/js/contentcollector.js b/src/static/js/contentcollector.js index 219976d33..2e848f974 100644 --- a/src/static/js/contentcollector.js +++ b/src/static/js/contentcollector.js @@ -258,7 +258,8 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class { state.listNesting--; } - if(oldListType) state.lineAttributes['list'] = oldListType; + if (oldListType && oldListType != 'none') { state.lineAttributes['list'] = oldListType; } + else { delete state.lineAttributes['list']; } _recalcAttribString(state); }