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 [EMAIL PROTECTED]