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.
This commit is contained in:
Travis Burtrum 2014-10-07 15:49:45 -04:00
parent 1e7092c623
commit 898ce9533a

View File

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