[Typo3] Paragraph Bug?
tombedlam at yahoo.com
Fri Mar 25 05:39:46 CET 2005
--- Robert Markula <robert.markula at gmx.net> wrote:
> There is some strange behaviour regarding paragraphs. I recently found a
> discussion dealing with one of the problems described here in the rte
> (and a related one in the german) newsgroup, but since it occurs
> independent of any RTE, I think this newsgroup is better suited for this
> The first thing is that a blank line is treated as an empty paragraph
> (<p class="bodytext"> </p>) in the frontend. What's the reason for
> The second flaw is that each linebreak in the backend becomes a new
> paragraph in the frontend. IMHO this should be a simple <br /> instead,
> because a paragraph has semantically another meaning.
> A new paragraph is usually indicated by an empty line in the Backend.
> Have a look at this text entered in the "Text" textbox of an ordinary
> text element:
> --- text begin ---
> Some text. After this line, there should be a simple linebreak instead
> of a new paragraph.
> Here is the new line. As you can see it's just a linebreak in the
> backend. But in the frontend (that is, in the source generated for the
> frontend), this is a whole new paragraph. Anyway, let's try and start a
> new paragraph. Usually an editor would insert a blank line to
> distinguish two paragraphs:
> Right before this sentence, there was the new line. Strange enough, the
> empty line is wrapped in an own paragraph, as you can see in the source.
> --- text end ---
> This is the output of the source of the generated page:
> --- source begin ---
> <p class="bodytext">Some text. After this line, there should be a simple
> linebreak instead of a new paragraph.
> <p class="bodytext">Here is the new line. As you can see it's just a
> linebreak in the backend. But in the frontend (that is, in the source
> generated for the frontend), this is a whole new paragraph. Anyway,
> let's try and start a new paragraph. Usually an editor would insert a
> blank line to distinguish two paragraphs:
> <p class="bodytext"> </p>
> <p class="bodytext">Right before this sentence, there was the new line.
> Strange enough, the empty line is wrapped in an own paragraph, as you
> can see in the source.</p>
> --- source end ---
> I tested this behaviour on both Typo3 3.7 and 3.8-dev; one time with
> rtehtmlarea installed, another time with no RTE installed at all.
> In one case using CSS styled content 0.2.2, in the other case using
> 0.1.0 with TemplaVoila.
> The result is the same on all test installations.
This might be a stupid question, but do you know how to type <br /> and
<p>? Text editors conventionally output a line feed (<br />) when you type
[SHIFT-RETURN] and a carriage return (<p>) when you type [RETURN]. As far
as I'm able to tell, Typo3's RTE transformations conform to this convention
(but, as Oliver suggested, check the 'doNotConvert' setting...)
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
More information about the TYPO3-english