Half a croissant, on a plate, with a sign in front of it saying '50c'
h a l f b a k e r y
I CAN HAZ CROISSANTZ?

idea: add, search, annotate, link, view, overview, recent, by name, random

meta: news, help, about, links, report a problem

account: browse anonymously, or get an account and write.

user:
pass:
register,


                     

Carriage return as <br>

So no HTML is needed
 
(0)
  [vote for,
against]

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 17 2004]

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

[link]






       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 25 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 26 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 10 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
  
      
[annotate]
  


 

back: main index

business  computer  culture  fashion  food  halfbakery  home  other  product  public  science  sport  vehicle