lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev [PATCH] small fix for prettysrc for pre1


From: Vlad Harchev
Subject: lynx-dev [PATCH] small fix for prettysrc for pre1
Date: Thu, 6 Apr 2000 15:57:04 +0500 (SAMST)

* Fixed a bug with psrcview on lss-enabled lynx. Code like <a blah href=.>
  (i.e. unknown attribute and then some other attribute) was causing calling
  PSRCSTOP(barattr) twice (and lynx was switched to "non-preformatted" mode
  loosing all white spaces of the document after that piece of code) -VH


 Best regards,
  -Vlad

diff -ru old/WWW/Library/Implementation/SGML.c 
fixed/WWW/Library/Implementation/SGML.c
--- old/WWW/Library/Implementation/SGML.c       Tue Feb 15 08:07:39 2000
+++ fixed/WWW/Library/Implementation/SGML.c     Thu Apr  6 14:59:50 2000
@@ -3560,11 +3560,13 @@
            break;
        }
 #ifdef USE_PRETTYSRC
+#if 0 /*seems this is not needed. It was causing some LSS style stack 
underflow -VH*/
        /* we are here because this char seemed the beginning of attrname */
        if (psrc_view && context->current_attribute_number == INVALID) {
            PSRCSTOP(badattr);
            PUTC(' ');
        }
+#endif 
 #endif
        HTChunkPutc(string, c);
        context->state = S_attr; /* Get next attribute */


reply via email to

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