lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev [PATCH 2.8.3.dev6] fixes for psrc mode


From: Leonid Pauzner
Subject: Re: lynx-dev [PATCH 2.8.3.dev6] fixes for psrc mode
Date: Sun, 15 Aug 1999 22:31:27 +0400 (MSD)

13-Aug-99 01:45 Vlad Harchev wrote:

> * Corrected displaying of SGML_LITTERAL content.
> * Now LY_SOFT_NEWLINE are used in psrc mode to denote wrapped lines (as in
>   plain source mode).
thanks! (have not checked yet).

>  Best regards,
>   -Vlad

...
> @@ -4058,6 +4097,7 @@
>  #ifdef USE_PSRC
>      if (psrc_view) {
>       psrc_view = FALSE;
> +     mark_htext_as_source = TRUE;
>       SGML_string(context,
>                   "<HTML><HEAD><TITLE>source</TITLE></HEAD><BODY><PRE>");
>       psrc_view = TRUE;
> diff -ru lynx2-8-3dev6/src/GridText.c lynx2-8-3dev6-fixed/src/GridText.c
> --- lynx2-8-3dev6/src/GridText.c      Wed Aug 11 19:07:41 1999
> +++ lynx2-8-3dev6-fixed/src/GridText.c        Thu Aug 12 08:19:48 1999
> @@ -647,7 +648,13 @@
>      else
>       self->source = NO;
>  #else
> -    self->source=( LYpsrc ? psrc_view : HTOutputFormat == WWW_SOURCE);
> +    /*  mark_htext_as_source == TRUE if we are parsing html file (and 
> psrc_view is
> +         set temporary to false at creation time)
> +     psrc_view == TRUE if source of the text produced by some lynx module
> +         (like ftp browsers) is requested). - VH
> +    */
> +    self->source=( LYpsrc ? mark_htext_as_source || psrc_view : 
> HTOutputFormat == WWW_SOURCE);
> +    mark_htext_as_source = FALSE;
>  #endif
>      HTAnchor_setDocument(anchor, (HyperDoc *)self);
>      HTFormNumber = 0;  /* no forms started yet */
> diff -ru lynx2-8-3dev6/src/LYMainLoop.c lynx2-8-3dev6-fixed/src/LYMainLoop.c
> --- lynx2-8-3dev6/src/LYMainLoop.c    Thu Aug 12 08:03:11 1999
> +++ lynx2-8-3dev6-fixed/src/LYMainLoop.c      Thu Aug 12 08:04:18 1999
> @@ -1285,13 +1285,6 @@
>                    *  to Newline, so we get a redraw.
>                    */
>                   curdoc.line = -1;
> -#ifdef USE_PSRC
> -                 if (psrc_view)
> -                     HTMark_asSource(); /* this flag is not set, since when
> -                     displaying source, psrc_view is temporary unset when
> -                     writing the HTML header - and HTMainText is created
> -                     at that time.*/
> -#endif
>                   break;
>               }  /* end switch */



Could we exclude Mark_asSource() call from LYK_SOURCE now?
(if yes, remove it from GridText.[ch] completely).


> diff -ru lynx2-8-3dev6/src/LYPrettySrc.c lynx2-8-3dev6-fixed/src/LYPrettySrc.c
> --- lynx2-8-3dev6/src/LYPrettySrc.c   Thu May 20 17:48:10 1999
> +++ lynx2-8-3dev6-fixed/src/LYPrettySrc.c     Thu Aug 12 08:19:57 1999
> @@ -16,7 +16,7 @@
>  PUBLIC BOOL sgml_in_psrc_was_initialized;
>  PUBLIC BOOL psrc_nested_call;
>  PUBLIC BOOL psrc_first_tag;
> -
> +PUBLIC BOOL mark_htext_as_source=FALSE;
>    /* tagspecs from lynx.cfg are read here. After .lss file is read (is with 
> lss
>       support), the style cache and markup are created before entering the
>       mainloop. */
> diff -ru lynx2-8-3dev6/src/LYPrettySrc.h lynx2-8-3dev6-fixed/src/LYPrettySrc.h
> --- lynx2-8-3dev6/src/LYPrettySrc.h   Thu May  6 05:33:59 1999
> +++ lynx2-8-3dev6-fixed/src/LYPrettySrc.h     Thu Aug 12 08:19:30 1999
> @@ -21,6 +21,8 @@
>  extern BOOL psrc_first_tag; /* this is also used in HTML.c to trigger the
>   1st tag to preform special. */

> +extern BOOL mark_htext_as_source;
> +
>  /* here is a list of lexem codes. */
>  typedef enum _HTlexem {
>    HTL_comm=0,





reply via email to

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