diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-17 16:05:03 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-17 16:05:03 +0000 |
commit | 2963994da8a70f8a25ea738032e1b3486212050e (patch) | |
tree | a4ec2519692bb682f676adbc6b7f4ab78f0eb8c7 | |
parent | [w3m-dev 02669] delete cURLcode() (diff) | |
download | w3m-2963994da8a70f8a25ea738032e1b3486212050e.tar.gz w3m-2963994da8a70f8a25ea738032e1b3486212050e.zip |
[w3m-dev 02670]
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | table.c | 9 |
2 files changed, 10 insertions, 7 deletions
@@ -1,3 +1,9 @@ +2001-12-18 Kiyokazu SUTO <suto@ks-and-ks.ne.jp> + + * [w3m-dev 02670] + * table.c (maximum_visible_length): use strchr() + * table.c (do_refill): use force==2 mode for flushline() + 2001-12-18 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> * [w3m-dev 02669] delete cURLcode() @@ -1279,4 +1285,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.134 2001/12/17 15:54:14 ukai Exp $ +$Id: ChangeLog,v 1.135 2001/12/17 16:05:03 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: table.c,v 1.11 2001/12/14 17:58:40 ukai Exp $ */ +/* $Id: table.c,v 1.12 2001/12/17 16:05:03 ukai Exp $ */ /* * HTML table */ @@ -537,14 +537,11 @@ int maximum_visible_length(char *str) { int maxlen, len; - char *p; - - for (p = str; *p && *p != '\t'; p++) ; visible_length_offset = 0; maxlen = visible_length(str); - if (*p == '\0') + if (!strchr(str, '\t')) return maxlen; for (visible_length_offset = 1; visible_length_offset < Tabstop; @@ -779,7 +776,7 @@ do_refill(struct table *tbl, int row, int col, int maxlimit) int limit = tbl->tables[id].indent + t->total_width; tbl->tables[id].ptr = NULL; save_fonteffect(&h_env, h_env.obuf); - flushline(&h_env, &obuf, 0, 1, h_env.limit); + flushline(&h_env, &obuf, 0, 2, h_env.limit); if (t->vspace > 0 && !(obuf.flag & RB_IGNORE_P)) do_blankline(&h_env, &obuf, 0, 0, h_env.limit); if (RB_GET_ALIGN(h_env.obuf) == RB_CENTER) |