lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev patch to fix a problem in psrc mode


From: Vlad Harchev
Subject: lynx-dev patch to fix a problem in psrc mode
Date: Sat, 22 May 1999 03:39:06 +0500 (SAMST)

 * Fixed handling of incorrect html in psrc mode. If a piece of html matched
   the pattern  "<known_tag_name unknown_attr_name any_attr_name>", then
   styles of internal markup were unbalanced - resulted in cluttered colors 

 Best regards,
  -Vlad

--- SGML.c~     Mon May  3 15:41:29 1999
+++ SGML.c      Sat May 22 01:19:46 1999
@@ -3190,6 +3190,13 @@
            context->state = S_equals;
            break;
        }
+#ifdef USE_PSRC        
+       /* we are here 'cause this char seemed as begining of attrname */
+       if (psrc_view && context->current_attribute_number == INVALID) {
+           PSRCSTOP(badattr);
+           PUTC(' ');
+       }
+#endif
        HTChunkPutc(string, c);
        context->state = S_attr;                /* Get next attribute */
        break;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]