[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
- lynx-dev [PATCH 2.8.4dev.18] remove the gap,
Ilya Zakharevich <=
- lynx-dev Re: [PATCH 2.8.4dev.18] remove the gap, Ilya Zakharevich, 2001/03/08
- Re: lynx-dev Re: [PATCH 2.8.4dev.18] remove the gap, Robert Mognet, 2001/03/08
- Re: lynx-dev Re: [PATCH 2.8.4dev.18] remove the gap, Michael Warner, 2001/03/08
- Re: lynx-dev Re: [PATCH 2.8.4dev.18] remove the gap, Thomas Dickey, 2001/03/09
- mirrors (was: Re: lynx-dev Re: [PATCH 2.8.4dev.18] remove the gap), Leonid Pauzner, 2001/03/09
- lynx-dev Re: mirrors (was: ...), Webmaster Jim, 2001/03/09
- Re: lynx-dev Re: mirrors (was: ...), Leonid Pauzner, 2001/03/10
- Re: lynx-dev Re: mirrors (was: ...), Thomas Dickey, 2001/03/10
lynx-dev Re: [PATCH 2.8.4dev.18] remove the gap, Ilya Zakharevich, 2001/03/08