On Wed, 2005-09-21 at 23:12 +0200, Mark Wielaard wrote:
> Hi Tony,
> 
> On Wed, 2005-09-21 at 16:32 -0400, Anthony Balkissoon wrote:
> > 2005-09-21  Anthony Balkissoon  <[EMAIL PROTECTED]>
> > 
> >       * a paragraph is manufactured.
> >       * toString() returns 'implied'. HTML reader synthesizes this tag.
> >       */
> > -    public static final Tag IMPLIED = new Tag("implied", SYNTETIC);
> > +    public static final Tag IMPLIED = new Tag("p-implied", SYNTETIC);
> 
> Looking at the Tag.toString() method seems the comment doesn't match
> anymore.
> 
> Also the SYNTETIC constant looks like it should be spelled SYNTHETIC.

These are fixed now.

--Tony
Index: javax/swing/text/html/HTML.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/html/HTML.java,v
retrieving revision 1.6
diff -u -r1.6 HTML.java
--- javax/swing/text/html/HTML.java	21 Sep 2005 20:30:38 -0000	1.6
+++ javax/swing/text/html/HTML.java	22 Sep 2005 14:33:10 -0000
@@ -945,22 +945,22 @@
      * This tag is not included into the array, returned by getAllTags().
      * toString() returns 'comment'. HTML reader synthesizes this tag.
      */
-    public static final Tag COMMENT = new Tag("comment", SYNTETIC);
+    public static final Tag COMMENT = new Tag("comment", SYNTHETIC);
 
     /**
      *  All text content is labeled with this tag.
      *  This tag is not included into the array, returned by getAllTags().
      *  toString() returns 'content'. HTML reader synthesizes this tag.
      */
-    public static final Tag CONTENT = new Tag("content", SYNTETIC);
+    public static final Tag CONTENT = new Tag("content", SYNTHETIC);
 
     /**
      * All text content must be in a paragraph element.
      * If a paragraph didn't exist when content was encountered,
      * a paragraph is manufactured.
-     * toString() returns 'implied'. HTML reader synthesizes this tag.
+     * toString() returns 'p-implied'. HTML reader synthesizes this tag.
      */
-    public static final Tag IMPLIED = new Tag("p-implied", SYNTETIC);
+    public static final Tag IMPLIED = new Tag("p-implied", SYNTHETIC);
     final String name;
     final int flags;
 
@@ -1144,7 +1144,7 @@
      */
     boolean isSyntetic()
     {
-      return (flags & SYNTETIC) != 0;
+      return (flags & SYNTHETIC) != 0;
     }
 
     private static void unexpected(Exception ex)
@@ -1185,7 +1185,7 @@
   static final int BREAKS = 1;
   static final int BLOCK = 2;
   static final int PREFORMATTED = 4;
-  static final int SYNTETIC = 8;
+  static final int SYNTHETIC = 8;
   private static Map tagMap;
   private static Map attrMap;
 
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to