[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] misaligned image in a table
- From: =?utf-8?q?=C5=81ukasz?= Stelmach <lukasz.stelmach@xxxxxxxxxxxxx>
- Date: Thu, 26 Aug 2010 09:05:13 +0200
- X-ml-name: emacs-w3m
- X-mail-count: 11325
- References: <871v9nszn5.fsf@xxxxxxxxxxxxxxxxxxx> <b4mr5hm6tgt.fsf@xxxxxxx>
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