Halfbakery: Layout: Text
Carriage return as <br>   (+4, -1)  [vote for, against]
So no HTML is needed

In the idea and annotation textareas, have a single carriage return act as a < br > tag, so that no html is necessary to achieve a linebreak.
-- PotatoStew, Aug 25 2001

XHTML http://www.w3.org/MarkUp/#recommendations
Why everyone should be using <br />. [jvonr, Oct 05 2004]

Benefits of XHTML http://www.nypl.org...xhtml/benefits.html
[po, Oct 05 2004]

That would make contributions
from
people who do their own line
wrapping
by hitting return when they get
close
to the right side of a writing area
look
really bad.
-- jutta, Aug 25 2001


Ah... saving people from themselves? I hadn't thought of that. Is doing your own linewrapping in textareas a widespread practice? I suppose no one would really know that information.
-- PotatoStew, Aug 26 2001


I do it because some text boxes don't, so you end up with a ten paragraph message on ten lines. Jutta programmed well, so that it automagically wraps as necessary, which allows it to fit into whatever size column it ends up in.
-- StarChaser, Aug 26 2001


Fair enough. It seemed to me that people regularly (not often, just regularly) had to be told to "use < br > tags for a line break." I hadn't considered the other issue though.

This idea will probably implode fairly soon, unless any really good deep thoughts about the subject are added.
-- PotatoStew, Aug 27 2001


It would be useful if there was an explicit list of what HTML tags are permitted. I know Jutta supports [br], but I don't know what else, if anything. She does not seem to support &laquo;entities&raquo;--not even &lt; and &gt;, so there's no way to show what a [br] really looks like.

In general, I don't mind that most tags are unavailable since they would detract from the appearance of the page and they'd get ludicrously overused. The [i] tag might not be too bad--CERTAINLY NO WORSE THAN ALLCAPS. And entities should not detract from page appearance in any bothersome way.
-- supercat, Jan 11 2002


I am a proponent of the <i> tag myself. But that's about as far as it goes. I once wanted the &nbsp; but no longer.

• A few oddball things are supported, though.
-- bristolz, Jan 11 2002


Supercat: Why not just use '<>'? Works fine for me. I use them as parenthesis out of long habit.

Besides, if it can't be said in plain text, putting it in blinking orange Flyspeck-3 on a lime green background won't help.
-- StarChaser, Jan 12 2002


Surprised this hasn't sparked discussion about how to do this... In PHP:
$annotation = eregi_replace("
", "< br >", $annotation); // replace carriage returns with line breaks
Obviously I used a < br > in place of a carriage return or this wouldn't have worked, but you get the idea. $annotation would be the annotation variable.
-- Parvenu, Jan 02 2003


Don't you mean <br /> ?

See the XHTML links I've posted.
-- jvonr, Jan 02 2003



random, halfbakery