aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-10-30 03:58:59 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-10-30 03:58:59 +0000
commita5c8badd28bc387f2f70edfeb2eca233e3b7345c (patch)
treee8e3c9f9d2e9d5319ad3d81365417f6002b915b8 /file.c
parentcvs version (diff)
downloadw3m-a5c8badd28bc387f2f70edfeb2eca233e3b7345c.tar.gz
w3m-a5c8badd28bc387f2f70edfeb2eca233e3b7345c.zip
[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 (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/file.c b/file.c
index eff1b63..bca214c 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.105 2002/10/25 19:59:54 ukai Exp $ */
+/* $Id: file.c,v 1.106 2002/10/30 03:58:59 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -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) {