diff options
author | Roman Kennke <roman@kennke.org> | 2006-11-16 20:49:02 +0000 |
---|---|---|
committer | Roman Kennke <roman@kennke.org> | 2006-11-16 20:49:02 +0000 |
commit | 8dbdad31651939f62b760243e4beb6d787840d8a (patch) | |
tree | 105fb88e69256474c9f76ddbe7ec761ade2a9c51 /gnu | |
parent | 4974bf3cd2889569efbcfc422afa78171f75e78d (diff) | |
download | classpath-8dbdad31651939f62b760243e4beb6d787840d8a.tar.gz |
2006-11-16 Roman Kennke <kennke@aicas.com>
* gnu/javax/swing/text/html/parser/support/Parser.java
(_handleText): Fixed condition for consuming whitespace.
Removed validator check, this is superfluous now.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/javax/swing/text/html/parser/support/Parser.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gnu/javax/swing/text/html/parser/support/Parser.java b/gnu/javax/swing/text/html/parser/support/Parser.java index 8304c1f66..98058e503 100644 --- a/gnu/javax/swing/text/html/parser/support/Parser.java +++ b/gnu/javax/swing/text/html/parser/support/Parser.java @@ -662,19 +662,15 @@ public class Parser if (text != null && text.length > 0 // According to the specs we need to discard whitespace immediately // before a closing tag. - && (text.length > 1 || (text[0] == ' ' && ! TAG_CLOSE.matches(this)))) + && (text.length > 1 || text[0] != ' ' || ! TAG_CLOSE.matches(this))) { TagElement pcdata = new TagElement(dtd.getElement("#pcdata")); - if ((text.length > 1 && text[0] != ' ') - || validator.tagIsValidForContext(pcdata) == Boolean.TRUE) - { - attributes = htmlAttributeSet.EMPTY_HTML_ATTRIBUTE_SET; - _handleEmptyTag(pcdata); + attributes = htmlAttributeSet.EMPTY_HTML_ATTRIBUTE_SET; + _handleEmptyTag(pcdata); - handleText(text); - if (titleOpen) - title.append(text); - } + handleText(text); + if (titleOpen) + title.append(text); } } |