Skip to content

Commit

Permalink
fix(taBind): Fix paste from word issue with nested lists and differen…
Browse files Browse the repository at this point in the history
…t margin measurements.
  • Loading branch information
SimeonC authored and SimeonC committed Oct 30, 2014
1 parent be88368 commit 20c4ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textAngular.js
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ See README.md or https://github.com/fraywing/textAngular/wiki for requirements a
continue;
}
var isUl = _listMatch[1].toLowerCase() === "bullet" || (_listMatch[1].toLowerCase() !== "bullet" && !(el[0].childNodes[1].innerHTML.match(/^[0-9a-z]/ig) || el[0].childNodes[1].childNodes[0].innerHTML.match(/^[0-9a-z]/ig)));
var _indentMatch = (el.attr('style') || '').match(/margin-left:([\-\.0-9]*)pt/i);
var _indentMatch = (el.attr('style') || '').match(/margin-left:([\-\.0-9]*)/i);
var indent = parseFloat((_indentMatch)?_indentMatch[1]:0);

if (!_listMatch[3] || _listMatch[3].toLowerCase() === "first" || (_list.lastIndent === null) || (_list.isUl !== isUl && _list.lastIndent === indent)) {
Expand Down

0 comments on commit 20c4ea2

Please sign in to comment.