[Typo3] Typo adds <p> </p> after h1 tags
Robert Markula
robert.markula at gmx.net
Mon May 30 05:58:27 CEST 2005
Rodrigo Cea wrote:
> List,
>
> typo is adding <p> </p> after my <h1> tags, when they're not followed
> by normal text in the RTE.
>
> For instance, if my text looks like this (in code view):
>
> <h1>text>/h1>
>
> the output looks like this
>
> <h1>text>/h1>
> <p> </p>
>
> which, needless to say, screws up my design. I am quite sure that there
> is no space after the text, and if I change the <h1> tag into <p>, there
> is no extra line added.
>
> I think the culprit is this in the
> ext/css_styled_content/static/setup.txt file (lines 123-):
>
> nonTypoTagStdWrap.encapsLines {
> encapsTagList = div,p,pre,h1,h2,h3,h4,h5,h6
> remapTag.DIV = P
> nonWrappedTag = P
> innerStdWrap_all.ifEmpty =
> addAttributes.P.class = bodytext
> addAttributes.P.class.setOnly=blank
> }
>
> If I comment this out, the problem disappears, but, obviously enough, my
> normal text lines don't get wrapped in <p> tags and all the text runs
> together. If I remove "h1,h2,h3" etc. from the second line, the <hX>
> tags get wrapped in a <p>.
>
> Is there a way to keep the correct <p> tags without tacking on extra
> ones I don't need?
I have the same problem and still don't know a solution. If anyone could
help, it would be really appreciated!
Ro
More information about the TYPO3-english
mailing list