aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-03-12 16:59:50 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-03-12 16:59:50 +0000
commitf0778b573df537c1692ec9b5cd3da7cd555da838 (patch)
treeafb4c49cdd0029465297c7e186c9ee0eab971681
parentrelease date (diff)
downloadw3m-f0778b573df537c1692ec9b5cd3da7cd555da838.tar.gz
w3m-f0778b573df537c1692ec9b5cd3da7cd555da838.zip
[w3m-dev 03116] Re: aligned block in <td align="center">
* file.c (flushline): align if align="align" * fm.h (RB_LEFT): change value (RB_ALIGN): include RB_LEFT (RB_INTABLE): added * table.c (do_refill): obuf.flag |= RB_INTABLE From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--ChangeLog11
-rw-r--r--file.c5
-rw-r--r--fm.h7
-rw-r--r--table.c3
4 files changed, 20 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index aa34880..33ded8b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2002-03-13 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 03116] Re: aligned block in <td align="center">
+ * file.c (flushline): align if align="align"
+ * fm.h (RB_LEFT): change value
+ (RB_ALIGN): include RB_LEFT
+ (RB_INTABLE): added
+ * table.c (do_refill): obuf.flag |= RB_INTABLE
+
2002-03-11 WATANABE Katsuyuki <katsuyuki_1.watanabe@toppan.co.jp>
* [w3m-dev 03110] Re: gopher broken
@@ -3118,4 +3127,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.343 2002/03/11 16:02:41 ukai Exp $
+$Id: ChangeLog,v 1.344 2002/03/12 16:59:50 ukai Exp $
diff --git a/file.c b/file.c
index 6e91c7c..fb48e36 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.81 2002/03/11 16:02:42 ukai Exp $ */
+/* $Id: file.c,v 1.82 2002/03/12 16:59:50 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -2470,6 +2470,9 @@ flushline(struct html_feed_environ *h_env, struct readbuffer *obuf, int indent,
else if (RB_GET_ALIGN(obuf) == RB_RIGHT) {
align(lbuf, width, ALIGN_RIGHT);
}
+ else if (RB_GET_ALIGN(obuf) == RB_LEFT && obuf->flag & RB_INTABLE) {
+ align(lbuf, width, ALIGN_LEFT);
+ }
#ifdef FORMAT_NICE
else if (obuf->flag & RB_FILL) {
char *p;
diff --git a/fm.h b/fm.h
index 68fa7bb..1ac7732 100644
--- a/fm.h
+++ b/fm.h
@@ -1,4 +1,4 @@
-/* $Id: fm.h,v 1.53 2002/02/28 16:15:41 ukai Exp $ */
+/* $Id: fm.h,v 1.54 2002/03/12 16:59:50 ukai Exp $ */
/*
* w3m: WWW wo Miru utility
*
@@ -517,10 +517,10 @@ struct readbuffer {
#define RB_XMPMODE 0x02
#define RB_LSTMODE 0x04
#define RB_PLAIN 0x08
-#define RB_LEFT 0x00
+#define RB_LEFT 0x80000
#define RB_CENTER 0x10
#define RB_RIGHT 0x20
-#define RB_ALIGN (RB_CENTER | RB_RIGHT)
+#define RB_ALIGN (RB_LEFT| RB_CENTER | RB_RIGHT)
#define RB_NOBR 0x40
#define RB_P 0x80
#define RB_PRE_INT 0x100
@@ -537,6 +537,7 @@ struct readbuffer {
#define RB_TITLE 0x8000
#define RB_NFLUSHED 0x10000
#define RB_NOFRAMES 0x20000
+#define RB_INTABLE 0x40000
#ifdef FORMAT_NICE
#define RB_FILL 0x200000
diff --git a/table.c b/table.c
index 340368e..54eeaa6 100644
--- a/table.c
+++ b/table.c
@@ -1,4 +1,4 @@
-/* $Id: table.c,v 1.21 2002/02/22 17:55:17 ukai Exp $ */
+/* $Id: table.c,v 1.22 2002/03/12 16:59:50 ukai Exp $ */
/*
* HTML table
*/
@@ -758,6 +758,7 @@ do_refill(struct table *tbl, int row, int col, int maxlimit)
init_henv(&h_env, &obuf, envs, MAX_ENV_LEVEL,
(TextLineList *)tbl->tabdata[row][col],
get_spec_cell_width(tbl, row, col), 0);
+ obuf.flag |= RB_INTABLE;
if (h_env.limit > maxlimit)
h_env.limit = maxlimit;
if (tbl->border_mode != BORDER_NONE && tbl->vcellpadding > 0)