Set _text to null in Anchor if the body content is empty.

Previously it just left it to whatever it was set to before,
which was super confusing and impossible to debug.
pull/2/head
Travis Burtrum 9 years ago
parent 1e7092c623
commit 898ce9533a

@ -325,6 +325,8 @@ public class Anchor extends AnchorBase
bodyContent.clearBody();
if (value.length() > 0)
_text = value;
else
_text = null;
}
return SKIP_BODY;
}

Loading…
Cancel
Save