lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev [PATCH 2.8.4dev.18] remove the gap


From: Ilya Zakharevich
Subject: lynx-dev [PATCH 2.8.4dev.18] remove the gap
Date: Thu, 8 Mar 2001 02:34:37 -0500
User-agent: Mutt/1.2.5i

This patch removes the first empty line shown on any HTML document.

Enjoy,
Ilya

--- ./src/GridText.c-as-sent2   Sun Feb 25 05:57:18 2001
+++ ./src/GridText.c    Thu Mar  8 02:16:20 2001
@@ -155,17 +155,6 @@ typedef struct _stylechange {
@@ -3269,6 +3263,11 @@ PRIVATE void blank_lines ARGS2(
 
     if (!HText_LastLineSize(text, IgnoreSpaces)) { /* No text on current line 
*/
        HTLine * line = text->last_line->prev;
+
+       /* Style-change petty requests at the start of the document: */
+       if (line == text->last_line && newlines == 1)
+           return;                     /* Do not add a blank line at start */
+
        while ((line != text->last_line) &&
               (HText_TrueLineSize(line, text, IgnoreSpaces) == 0)) {
            if (newlines == 0)

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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