[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV Re: formatting funny (<pre> in <li>)
From: |
Foteos Macrides |
Subject: |
Re: LYNX-DEV Re: formatting funny (<pre> in <li>) |
Date: |
Fri, 16 May 1997 14:07:48 -0500 (EST) |
"Christopher R. Maden" <address@hidden> wrote:
>Fote and Scott have said perfectly correct things about <pre> in <li>
>- but things that don't answer the user's original question.
>
>When a <pre> occurs in an <li>, the text *after* the <pre> has a bad
>left indent.
>
><ul>
><li>Some text blah blah...
><pre>
>foo bar baz
></pre>
>and more text blah blah...
></ul>
>
>comes out as something like
>[...]
Oh. That's because if there's no overt <LI> following the
</PRE> then there's an implied <P>, and I forgot to put in the
code for that under case HTML_PRE: in HTML_end_element(), as I
had done for the other block-level elements that might occur in
an LI. If you change that to "<P>and more text blah blah..."
it will indent properly, but you shouldn't need to. Here's the
insurance code if anyone is in a rush:
[...]
case HTML_PRE: /* Formatted text */
case HTML_LISTING: /* Litteral text */
case HTML_XMP:
case HTML_PLAINTEXT:
[...]
change_paragraph_style(me, me->sp->style); /* Often won't really
change */
if (me->List_Nesting_Level >= 0) {
UPDATE_STYLE;
HText_NegateLineOne(me->text);
}
break;
[...]
Fote
=========================================================================
Foteos Macrides Worcester Foundation for Biomedical Research
address@hidden 222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;