[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: [BUG] misaligned image in a table



Katsumi Yamaoka <yamaoka@xxxxxxx> writes:

> In [emacs-w3m : No.11323] Łukasz Stelmach wrote:
>> EHLO.
>
>> I've found a very small (at least for me, at least now) problem with
>> tables and images. Try to save and view the following HTML. The image is
>> misaligned with its left edge being centered in the table instead of its
>> center. Centering works fine for texts (the lowest row). Is it a bug or
>> just a feature?
>
> Here's a workaround, that's very poor though:
>
> (defun my-w3m-delete-indentation ()
[...]
> (Do `M-x my-w3m-delete-indentation RET'.  To restore the original
>  rendering, do `R'.)

Thanks.

> The reason too much indentation happens is that we have no clue
> as to the width of the image unless the img tag contains the width
> attribute like this:
>
> <img alt="Click on the title below to read the comic"
>  src="http://www.phdcomics.com/comics/archive/phd081310s.gif";
>  border="0" align="top" width="600" height="260"></img>
>                         ^^^^^^^^^^^

That is exactly what it occured to me when I started to scratch a bit
more. (After I posted to the list of course ;-)

-- 
Miłego dnia,
Łukasz Stelmach