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 /table.c | |
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>
Diffstat (limited to '')
-rw-r--r-- | table.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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) |