summaryrefslogtreecommitdiff
path: root/gnu/javax/swing/text/html/parser
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/javax/swing/text/html/parser')
-rw-r--r--gnu/javax/swing/text/html/parser/GnuParserDelegator.java12
-rw-r--r--gnu/javax/swing/text/html/parser/HTML_401F.java4
-rw-r--r--gnu/javax/swing/text/html/parser/SmallHtmlAttributeSet.java18
-rw-r--r--gnu/javax/swing/text/html/parser/htmlAttributeSet.java20
-rw-r--r--gnu/javax/swing/text/html/parser/htmlValidator.java30
-rw-r--r--gnu/javax/swing/text/html/parser/models/list.java6
-rw-r--r--gnu/javax/swing/text/html/parser/support/Parser.java18
-rw-r--r--gnu/javax/swing/text/html/parser/support/low/ReaderTokenizer.java4
-rw-r--r--gnu/javax/swing/text/html/parser/support/textPreProcessor.java2
9 files changed, 57 insertions, 57 deletions
diff --git a/gnu/javax/swing/text/html/parser/GnuParserDelegator.java b/gnu/javax/swing/text/html/parser/GnuParserDelegator.java
index 273461a72..9f3666d3a 100644
--- a/gnu/javax/swing/text/html/parser/GnuParserDelegator.java
+++ b/gnu/javax/swing/text/html/parser/GnuParserDelegator.java
@@ -53,8 +53,8 @@ import javax.swing.text.html.parser.TagElement;
/**
* This parser delegator uses the different DTD ({@link HTML_401Swing}).
* It is derived from the ParserDelegator for the compatibility reasons.
- *
- * @author Audrius Meskauskas (AudriusA@Bioinformatics.org)
+ *
+ * @author Audrius Meskauskas (AudriusA@Bioinformatics.org)
*/
public class GnuParserDelegator extends ParserDelegator implements Serializable
{
@@ -121,7 +121,7 @@ public class GnuParserDelegator extends ParserDelegator implements Serializable
*/
private static final long serialVersionUID = -1276686502624777206L;
- private DTD theDtd;
+ private DTD theDtd;
/**
* The callback.
@@ -135,10 +135,10 @@ public class GnuParserDelegator extends ParserDelegator implements Serializable
* This is package-private to avoid an accessor method.
*/
gnuParser gnu;
-
+
/**
* Create the parser that uses the given DTD to parse the document.
- *
+ *
* @param theDtd the DTD
*/
public GnuParserDelegator(DTD theDtd)
@@ -150,7 +150,7 @@ public class GnuParserDelegator extends ParserDelegator implements Serializable
/**
* Parses the HTML document, calling methods of the provided callback. This
* method must be multithread - safe.
- *
+ *
* @param reader The reader to read the HTML document from
* @param a_callback The callback that is notifyed about the presence of HTML
* elements in the document.
diff --git a/gnu/javax/swing/text/html/parser/HTML_401F.java b/gnu/javax/swing/text/html/parser/HTML_401F.java
index 5555412d0..d4b061465 100644
--- a/gnu/javax/swing/text/html/parser/HTML_401F.java
+++ b/gnu/javax/swing/text/html/parser/HTML_401F.java
@@ -2499,7 +2499,7 @@ public class HTML_401F
attr(VALUE, null, null, 0, IMPLIED)
}
);
-
+
// Headers in the paragraph are not allowed.
defElement(P, 0, false, true, new ContentModel( 0,
new noTagModel(new String[] { P, H1, H2, H3, H4, H5, H6 }), null),
@@ -3775,7 +3775,7 @@ public class HTML_401F
li.type = ul.type = ol.type = '|';
return li;
}
-
+
/**
* Get elements that are allowed in the document body, at the zero level.
*/
diff --git a/gnu/javax/swing/text/html/parser/SmallHtmlAttributeSet.java b/gnu/javax/swing/text/html/parser/SmallHtmlAttributeSet.java
index 930a324f9..8739ad453 100644
--- a/gnu/javax/swing/text/html/parser/SmallHtmlAttributeSet.java
+++ b/gnu/javax/swing/text/html/parser/SmallHtmlAttributeSet.java
@@ -50,18 +50,18 @@ import javax.swing.text.html.HTML.Tag;
* Small fixed HTML attribute set. The most of the HTML elements contain only
* several attributes. With four attributes, the number of operations in more
* complex algorithms is not larger than using the naive algorithm.
- *
+ *
* Same as HtmlAttributeSet, this set allows both strings and non-string as
* keys. The strings are case insensitive, the non strings are compared with
* .equals.
- *
- * @author Audrius Meskauskas (AudriusA@Bioinformatics.org)
+ *
+ * @author Audrius Meskauskas (AudriusA@Bioinformatics.org)
*/
public class SmallHtmlAttributeSet
implements AttributeSet, Cloneable, Serializable
{
private static final long serialVersionUID = 1;
-
+
/**
* The keys, stored in this attribute set.
*/
@@ -80,7 +80,7 @@ public class SmallHtmlAttributeSet
/**
* Create a new small fixed attribute set that contains the unchangeable copy
* of the passed attribute set and inherits its parent.
- *
+ *
* @param copyFrom the attribute set, containing the attribute values to copy.
*/
public SmallHtmlAttributeSet(AttributeSet copyFrom)
@@ -143,7 +143,7 @@ public class SmallHtmlAttributeSet
/**
* Get the attribute value, matching this key. If not found in this set, the
* call is delegated to parent.
- *
+ *
* @return the value, matching key (or null if none).
*/
public Object getAttribute(Object key)
@@ -218,7 +218,7 @@ public class SmallHtmlAttributeSet
}
};
}
-
+
/**
* Get the parent that this set uses to resolve the not found attributes.
*/
@@ -226,7 +226,7 @@ public class SmallHtmlAttributeSet
{
return parent;
}
-
+
/**
* Check if the given attribute is defined in this set (not in the parent).
*/
@@ -242,7 +242,7 @@ public class SmallHtmlAttributeSet
}
return false;
}
-
+
/**
* Check this set and another set for equality by content.
*/
diff --git a/gnu/javax/swing/text/html/parser/htmlAttributeSet.java b/gnu/javax/swing/text/html/parser/htmlAttributeSet.java
index b89eec619..7eb0f616e 100644
--- a/gnu/javax/swing/text/html/parser/htmlAttributeSet.java
+++ b/gnu/javax/swing/text/html/parser/htmlAttributeSet.java
@@ -46,7 +46,7 @@ import javax.swing.text.html.HTML;
/**
* A set, adapted to store HTML attributes.
- *
+ *
* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
*/
public class htmlAttributeSet
@@ -54,13 +54,13 @@ public class htmlAttributeSet
{
public static final htmlAttributeSet EMPTY_HTML_ATTRIBUTE_SET =
new htmlAttributeSet();
-
+
AttributeSet parent;
/**
* Looks in this set and, if not found, later looks in the parent set. Calls
* toString(), allowing to pass as HTML.Attribute, as String to this method.
- *
+ *
* @param _key A key to search for a value.
* @return The value, if one is defined.
*/
@@ -119,7 +119,7 @@ public class htmlAttributeSet
/**
* Set the parent set, containing the default values.
- *
+ *
* @param a_parent
*/
public void setResolveParent(AttributeSet a_parent)
@@ -129,7 +129,7 @@ public class htmlAttributeSet
/**
* Get the parent set, containing the default values.
- *
+ *
* @return the parent, used to resolve the attributes.
*/
public AttributeSet getResolveParent()
@@ -139,7 +139,7 @@ public class htmlAttributeSet
/**
* Add the attribute to this attribute set.
- *
+ *
* @param key Attribute key (if string, it will be case insensitive)
* @param value Attribute value
*/
@@ -164,11 +164,11 @@ public class htmlAttributeSet
return new SmallHtmlAttributeSet(this);
else
return (AttributeSet) clone();
- }
-
+ }
+
/**
* Returns a clone of the attribute set.
- *
+ *
* @return A clone of the attribute set.
*/
public Object clone()
@@ -179,5 +179,5 @@ public class htmlAttributeSet
if (parent != null)
set.setResolveParent(parent);
return set;
- }
+ }
}
diff --git a/gnu/javax/swing/text/html/parser/htmlValidator.java b/gnu/javax/swing/text/html/parser/htmlValidator.java
index 7f16f1f2d..2b624cc3c 100644
--- a/gnu/javax/swing/text/html/parser/htmlValidator.java
+++ b/gnu/javax/swing/text/html/parser/htmlValidator.java
@@ -178,7 +178,7 @@ public abstract class htmlValidator
// If the tag has a content model defined, forcibly close all
// tags that were opened after the tag being currently closed.
- closing:
+ closing:
if (x.element.content != null)
{
iter = stack.listIterator(stack.size());
@@ -272,7 +272,7 @@ public abstract class htmlValidator
{
if (!stack.isEmpty())
{
- closing:
+ closing:
do
{
hTag last = (hTag) stack.getLast();
@@ -311,7 +311,7 @@ public abstract class htmlValidator
* content model recommends to insert making the situation ok. If Boolean.True
* is returned, the content model current position is moved forward. Otherwise
* this position remains the same.
- *
+ *
* @param tElement
* @return
*/
@@ -503,9 +503,9 @@ public abstract class htmlValidator
{
CPStringBuilder valid =
new CPStringBuilder("The tag <" + tag.getHTMLTag() +
- "> cannot contain the attribute '" + foundAttribute +
- "'. The valid attributes for this tag are: "
- );
+ "> cannot contain the attribute '" + foundAttribute +
+ "'. The valid attributes for this tag are: "
+ );
AttributeList a = tag.getElement().getAttributes();
@@ -551,18 +551,18 @@ public abstract class htmlValidator
if (dtdAttribute.values.size() == 1)
valid =
new CPStringBuilder("The attribute '" + foundAttribute +
- "' of the tag <" + tag.getHTMLTag() +
- "> cannot have the value '" + value +
- "'. The only valid value is "
- );
+ "' of the tag <" + tag.getHTMLTag() +
+ "> cannot have the value '" + value +
+ "'. The only valid value is "
+ );
else
valid =
new CPStringBuilder("The attribute '" + foundAttribute +
- "' of the tag <" + tag.getHTMLTag() +
- "> cannot have the value '" + value + "'. The " +
- dtdAttribute.values.size() +
- " valid values are: "
- );
+ "' of the tag <" + tag.getHTMLTag() +
+ "> cannot have the value '" + value + "'. The " +
+ dtdAttribute.values.size() +
+ " valid values are: "
+ );
Enumeration vv = dtdAttribute.values.elements();
while (vv.hasMoreElements())
diff --git a/gnu/javax/swing/text/html/parser/models/list.java b/gnu/javax/swing/text/html/parser/models/list.java
index c303ae857..1ff22f8cd 100644
--- a/gnu/javax/swing/text/html/parser/models/list.java
+++ b/gnu/javax/swing/text/html/parser/models/list.java
@@ -156,7 +156,7 @@ public class list
matched = false;
x = tokens [ i ];
- nodescan:
+ nodescan:
for (int j = 0; j < nodes.length; j++)
{
if (!nodes [ j ].isClosed())
@@ -204,7 +204,7 @@ public class list
public boolean performMatch(Object token)
{
boolean ok = false;
- Matching:
+ Matching:
for (int i = 0; i < nodes.length; i++)
{
ok = nodes [ i ].performMatch(token);
@@ -248,7 +248,7 @@ public class list
boolean m;
boolean matched = false;
- nodescan:
+ nodescan:
for (int j = 0; j < nodes.length; j++)
{
if (!nodes [ j ].isClosed())
diff --git a/gnu/javax/swing/text/html/parser/support/Parser.java b/gnu/javax/swing/text/html/parser/support/Parser.java
index b087c3c00..cdefb75c8 100644
--- a/gnu/javax/swing/text/html/parser/support/Parser.java
+++ b/gnu/javax/swing/text/html/parser/support/Parser.java
@@ -400,7 +400,7 @@ public class Parser
if (start.kind == EOF)
return;
- read:
+ read:
while (true)
{
t = getTokenAhead();
@@ -446,7 +446,7 @@ public class Parser
Token t;
Token last;
- comment:
+ comment:
while (true)
{
t = getTokenAhead();
@@ -525,7 +525,7 @@ public class Parser
restOfTag(false, name, start);
buffer.setLength(0);
-
+
while (!SCRIPT_CLOSE.matches(this))
{
append(getNextToken());
@@ -554,7 +554,7 @@ public class Parser
mustBe(EXCLAMATION);
buffer.setLength(0);
- read:
+ read:
while (true)
{
t = getNextToken();
@@ -607,7 +607,7 @@ public class Parser
restOfTag(false, name, start);
buffer.setLength(0);
-
+
while (!STYLE_CLOSE.matches(this))
{
append(getNextToken());
@@ -944,7 +944,7 @@ public class Parser
optional(WS);
- attributeReading:
+ attributeReading:
while (getTokenAhead().kind == NUMTOKEN)
{
name = getNextToken();
@@ -1012,7 +1012,7 @@ public class Parser
case SLASH:
value = next;
optional(WS);
-
+
// Check maybe the opening quote is missing.
next = getTokenAhead();
if (bQUOTING.get(next.kind))
@@ -1289,7 +1289,7 @@ public class Parser
int closeAt = 0;
buffer.setLength(0);
- ahead:
+ ahead:
for (int i = 1; i < 100; i++)
{
t = getTokenAhead(i - 1);
@@ -1356,7 +1356,7 @@ public class Parser
throws ParseException
{
buffer.setLength(0);
- read:
+ read:
while (true)
{
t = getNextToken();
diff --git a/gnu/javax/swing/text/html/parser/support/low/ReaderTokenizer.java b/gnu/javax/swing/text/html/parser/support/low/ReaderTokenizer.java
index 80bb333a5..45ac181b3 100644
--- a/gnu/javax/swing/text/html/parser/support/low/ReaderTokenizer.java
+++ b/gnu/javax/swing/text/html/parser/support/low/ReaderTokenizer.java
@@ -247,7 +247,7 @@ public class ReaderTokenizer
{
if (numberOfTokens <= 0)
return;
-
+
for (int i = 0; i < numberOfTokens; i++)
readToken();
}
@@ -261,7 +261,7 @@ public class ReaderTokenizer
Token t;
int ch;
- enlarging:
+ enlarging:
while (true)
{
t = tokenMatches();
diff --git a/gnu/javax/swing/text/html/parser/support/textPreProcessor.java b/gnu/javax/swing/text/html/parser/support/textPreProcessor.java
index 0cb6d7a59..22c44be4f 100644
--- a/gnu/javax/swing/text/html/parser/support/textPreProcessor.java
+++ b/gnu/javax/swing/text/html/parser/support/textPreProcessor.java
@@ -51,7 +51,7 @@ public class textPreProcessor
* Pre - process non-preformatted text. \t, \r and \n mutate into spaces, then
* multiple spaces mutate into single one, all whitespace around tags is
* consumed. The content of the passed buffer is destroyed.
- *
+ *
* @param a_text A text to pre-process.
*/
public char[] preprocess(StringBuffer a_text)