Comment handling

A small patch follows to handle the incorrect but common case of comments
following a structure similar to this:
<!------------------------------------------------
     Here's my comment that I like to make stand out
     with lots of hyphens, even though it's not
     legal HTML.
-------------------------------------------------->

Someone with CVS access may want to check it over, test it, commit it if they
like.

Index: Library/src/SGML.c
===================================================================
RCS file: /sources/public/libwww/Library/src/SGML.c,v
retrieving revision 1.52
diff -u -r1.52 SGML.c
--- SGML.c  1999/04/02 16:10:36 1.52
+++ SGML.c  1999/05/17 04:12:59
@@ -762,6 +762,8 @@
                text = b;
                count = 0;
                context->state = S_text;
+           } else if (c == '-') {
+               context->state = S_com_2a;
            } else
                context->state = S_com;
            break;

Enjoy.
-- 
Sam Couter                                             sam@topic.com.au
Internet Engineer
tSA Consulting

Received on Monday, 17 May 1999 00:25:55 UTC