[w3m-dev-en 00044] Re: <li> rendering bug

From: aito@ei5sun.yz.yamagata-u.ac.jp
Date: Wed Jan 26 2000 - 20:34:11 CST


In article <86mlc2$sum$1@bigeye.rhein-neckar.de>,
        Christian Weisgerber <w3m-dev-en@mi.med.tohoku.ac.jp> writes:
> > It is parhaps cause by FORMAT_NICE macro option.
>
> Probably.
> To me "sp;" very much looks like half of "&nbsp;".

OK, I found where the bug is. Here's a patch.

(By the way, how do you think about FORMAT_NICE (word fill)
option? Do you think it improves the appearance of a page?)

--
Akinori Ito
tel&fax: 0238-26-3369
E-mail: aito@eie.yz.yamagata-u.ac.jp

Index: file.c =================================================================== RCS file: /home/aito/cvsroot/w3m/file.c,v retrieving revision 1.16 diff -r1.16 file.c 1347a1348 > int indent_here = 0; 1349c1350,1354 < p = line->ptr+indent; --- > p = line->ptr; > while (IS_SPACE(*p)) { > p++; > indent_here++; > } 1352c1357 < for (i = 0; i < indent; i++) --- > for (i = 0; i < indent_here; i++) 2412c2417 < push_char(obuf, 1, 0, ' ', PC_ASCII); --- > push_charp(obuf, 1, "&nbsp;", PC_ASCII); 2429c2434 < push_char(obuf, 1, 0, ' ', PC_ASCII); --- > push_charp(obuf, 1,"&nbsp;", PC_ASCII);



This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:43 CDT