[345219] Javadoc In Autocomplete Distorted
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/derived/HTML2TextReader.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/derived/HTML2TextReader.java
index c80cea3..434c37c 100644
--- a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/derived/HTML2TextReader.java
+++ b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/derived/HTML2TextReader.java
@@ -70,8 +70,6 @@
fgTags.add("tl"); //$NON-NLS-1$
fgTags.add("em"); //$NON-NLS-1$
fgTags.add("i"); //$NON-NLS-1$
- fgTags.add("style"); //$NON-NLS-1$
- fgTags.add("base"); //$NON-NLS-1$
fgEntityLookup= new HashMap(7);
fgEntityLookup.put("lt", "<"); //$NON-NLS-1$ //$NON-NLS-2$
@@ -166,6 +164,20 @@
tag = tag.substring(0, ws);
}
+ if ("head".equals(html) && !fHeaderDetected) { //$NON-NLS-1$
+ fHeaderDetected= true;
+ fIgnore= true;
+ return EMPTY_STRING;
+ }
+
+ if ("/head".equals(html) && fHeaderDetected && fIgnore) { //$NON-NLS-1$
+ fIgnore= false;
+ return EMPTY_STRING;
+ }
+
+ if (fIgnore)
+ return EMPTY_STRING;
+
if (!fgTags.contains(tag))
return '<' + html + '>';
@@ -228,17 +240,6 @@
if ("/dd".equals(html)) //$NON-NLS-1$
return LINE_DELIM;
- if ("head".equals(html) && !fHeaderDetected) { //$NON-NLS-1$
- fHeaderDetected= true;
- fIgnore= true;
- return EMPTY_STRING;
- }
-
- if ("/head".equals(html) && fHeaderDetected && fIgnore) { //$NON-NLS-1$
- fIgnore= false;
- return EMPTY_STRING;
- }
-
return EMPTY_STRING;
}