# HG changeset patch # User gibus # Date 1352721514 -3600 # Node ID cefe588b2a2bf452c4e7dda5f3e00ac3175c8016 # Parent 39f17ac0388c60cf4c48c39aa4eea82c1352bd4e Do not spannify empty text nodes, prevents abiword crash. diff -r 39f17ac0388c -r cefe588b2a2b src/cm/utils/spannifier.py --- a/src/cm/utils/spannifier.py Tue Nov 06 09:25:44 2012 +0100 +++ b/src/cm/utils/spannifier.py Mon Nov 12 12:58:34 2012 +0100 @@ -8,6 +8,8 @@ return soup(text=lambda text:not isinstance(text, Comment)) def is_real_text_node(textNode): + if textNode.string == "\n": + return False return not textNode.findParent('style') def get_the_soup(input):