What's the best way to do line wrapping?
I have a text box that will submit text to a database. It'll be stored in SQL exactly how the user entered it (multiple space, multiple line breaks in tactic). Then when I print it out I will be using < pre > pre-tags so everything stays intact. Currently I'm using HARD line wrapping but then my text shows up with the line breaks in the wrong places:
something like this would show up
in
my database and it is really annoying
the
heck out of me.
even though it looked wrapped correctly when entered?
I have a text box that will submit text to a database. It'll be stored in SQL exactly how the user entered it (multiple space, multiple line breaks in tactic). Then when I print it out I will be using < pre > pre-tags so everything stays intact. Currently I'm using HARD line wrapping but then my text shows up with the line breaks in the wrong places:
something like this would show up
in
my database and it is really annoying
the
heck out of me.
even though it looked wrapped correctly when entered?