Fix #769 - wonky bug with pasted lists

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.
pull/913/head
odony 2012-07-25 14:30:33 +03:00 committed by Matthias Bartelmeß
parent c9e8f7e7af
commit a2bf577393
1 changed files with 2 additions and 1 deletions

View File

@ -258,7 +258,8 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
{ {
state.listNesting--; state.listNesting--;
} }
if(oldListType) state.lineAttributes['list'] = oldListType; if (oldListType && oldListType != 'none') { state.lineAttributes['list'] = oldListType; }
else { delete state.lineAttributes['list']; }
_recalcAttribString(state); _recalcAttribString(state);
} }