[Typo3] Paragraph Bug?
Robert Markula
robert.markula at gmx.net
Thu Mar 24 23:23:15 CET 2005
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
problem.
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
this?
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>
<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>
<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.
Regards,
Ro
More information about the TYPO3-english
mailing list