[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev [PATCH 2.8.4dev.19] table fixup
From: |
Ilya Zakharevich |
Subject: |
lynx-dev [PATCH 2.8.4dev.19] table fixup |
Date: |
Tue, 13 Mar 2001 22:06:34 -0500 |
User-agent: |
Mutt/1.2.5i |
This fixes highlighting of multiline links inside tables, and a "80M
tracelog" bug (due to a misprint update of the enclosing table was
performed once-per-row instead of once-per-table). Extra updates
would not hurt, but lead to slowdowns and quadratic-size logs.
This patch assumes my GridText-cleanup patches.
Enjoy,
Ilya
--- ./src/GridText.c-pre-eol Tue Mar 13 04:58:38 2001
+++ ./src/GridText.c Tue Mar 13 21:55:18 2001
@@ -2405,7 +2405,7 @@ PRIVATE void move_anchors_in_region ARGS
if (a->line_num < line_number - 1)
continue;
if (a->line_num == line_number - 1)
- last -= line->prev->size;
+ last -= line->prev->size + 1; /* Fake "\n" "between" lines counted
too */
if (last < sbyte) /* Completely before the start */
continue;
@@ -2534,6 +2534,9 @@ PRIVATE HTLine * insert_blanks_in_line A
}
ip++;
}
+ /* Check whether the last anchor continues on the next line */
+ if (head_processed && prev_anchor && prev_anchor->line_num == line_number)
+ prev_anchor->extent += shift;
*t = '\0';
mod_line->size = t - newdata;
return mod_line;
@@ -4627,11 +4630,11 @@ PRIVATE int HText_insertBlanksInStblLine
CTRACE((tfp, " %d:%d", lineno, table_offset - line->offset));
line->offset = table_offset;
}
+ }
#ifdef EXP_NESTED_TABLES
- if (max_width)
- Stbl_update_enclosing(me->stbl, max_width, last_nonempty);
+ if (max_width)
+ Stbl_update_enclosing(me->stbl, max_width, last_nonempty);
#endif
- }
CTRACE((tfp, " %d:done\n", lineno));
free(oldpos);
return lines_changed;
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev [PATCH 2.8.4dev.19] table fixup,
Ilya Zakharevich <=