commit 957320fb420a88e124e9ce16a87ba79b4e75e191
parent ea133b4a9b412adf059502c1d854ed7bce644e41
Author: ukai <ukai>
Date: Wed, 30 Oct 2002 03:58:59 +0000
[w3m-dev 03357] tab in <pre> in <ul>,<ol>,...
* file.c (HTMLlineproc2): check indent for tabstop
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat:
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,5 +1,10 @@
2002-10-30 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+ * [w3m-dev 03357] tab in <pre> in <ul>,<ol>,...
+ * file.c (HTMLlineproc2): check indent for tabstop
+
+2002-10-30 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+
* [w3m-dev 03354] display current line number
* display.c (displayBuffer): %3d -> %d
diff --git a/file.c b/file.c
@@ -5623,7 +5623,8 @@ HTMLlineproc0(char *str, struct html_feed_environ *h_env, int internal)
else if (ch == '\t') {
do {
PUSH(' ');
- } while (obuf->pos % Tabstop != 0);
+ } while ((h_env->envs[h_env->envc].indent + obuf->pos)
+ % Tabstop != 0);
str++;
}
else if (obuf->flag & RB_PLAINMODE) {