[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problematic indentation in HTML output of makeinfo
From: |
Thomas Keller |
Subject: |
Re: Problematic indentation in HTML output of makeinfo |
Date: |
Sun, 22 Nov 2009 23:20:38 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; de; rv:1.9.1.4pre) Gecko/20090915 Lightning/1.0pre Thunderbird/3.0b4 |
Am 22.11.09 20:15, schrieb Patrice Dumas:
> On Sun, Nov 22, 2009 at 07:47:52PM +0100, Thomas Keller wrote:
>>
>> Apparently texi2html makes this better, though the indentation is
>> "emulated" as HTML table here, which could be hacked around, but is
>> still not optimal. Actually I think there is little to no reason to
>> render the indentation "hard" at all, CSS' `margin-left` and
>> `padding-left` properties should be enough for everyone adding the
>> correct padding afterwards. And the CSS box model already takes care of
>> proper indentation on different levels, because the margins of all outer
>> boxes add up.
>
> The issue is that it doesn't allow for imbrication of 'preformatted' styles.
> For example
>
> @example
>
> The example
>
> @display
> this part is displayed
> @end display
>
> End of the example
>
> @end example
Its not clear to me what you mean by "imbrication" - makeinfo creates
the following HTML for that:
<pre class="example">
The example
<pre class="display"> this part is displayed
</pre>
<p>End of the example
</pre>
(note the unmatched <p> at the end - is this another bug?)
If I remove the unwanted whitespace from this example, then you're
right, all contents are shifted to the left by default - but hey, thats
why we have CSS, right? Putting
pre { margin-left: 3.2em; }
in the style definition gives us back the original 5 whitespace
indentation between the inner and the outer preformatted area.
> Also other kind of nesting wouldn't be that good if the indentation was done
> for each preformatted fragment. For example for a @multitable in @example,
> I think that it is better to indent the whole @example and not the
> individual preformatted fragments in the @multitable. To be honest, this is
> not clear that this is correct texinfo, but such constructs happen in
> manuals.
Can you give me a specific example?
Thanks,
Thomas.
--
GPG-Key 0x160D1092 | address@hidden | http://thomaskeller.biz
Please note that according to the EU law on data retention, information
on every electronic information exchange might be retained for a period
of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en
signature.asc
Description: OpenPGP digital signature
- Problematic indentation in HTML output of makeinfo, Thomas Keller, 2009/11/18
- Re: Problematic indentation in HTML output of makeinfo, Karl Berry, 2009/11/20
- Re: Problematic indentation in HTML output of makeinfo, Thomas Keller, 2009/11/20
- Re: Problematic indentation in HTML output of makeinfo, Thomas Keller, 2009/11/20
- Re: Problematic indentation in HTML output of makeinfo, Karl Berry, 2009/11/21
- Re: Problematic indentation in HTML output of makeinfo, Patrice Dumas, 2009/11/22
- Re: Problematic indentation in HTML output of makeinfo, Thomas Keller, 2009/11/22
- Re: Problematic indentation in HTML output of makeinfo, Patrice Dumas, 2009/11/22
- Re: Problematic indentation in HTML output of makeinfo,
Thomas Keller <=
- Re: Problematic indentation in HTML output of makeinfo, Patrice Dumas, 2009/11/22
- Re: Problematic indentation in HTML output of makeinfo, Thomas Keller, 2009/11/22
- Re: Problematic indentation in HTML output of makeinfo, Patrice Dumas, 2009/11/22
- Re: Problematic indentation in HTML output of makeinfo, Thomas Keller, 2009/11/22
- Re: Problematic indentation in HTML output of makeinfo, Patrice Dumas, 2009/11/22
- Re: Problematic indentation in HTML output of makeinfo, Patrice Dumas, 2009/11/23
- Re: Problematic indentation in HTML output of makeinfo, Thomas Keller, 2009/11/24