busboy — 2013-01-01T19:51:59-05:00 — #1
The mySQL client I use, Querious, adds \
between paragraphs while editing the contents of a column. However, the text area HTML tag on a webpage inserts \r\r\
between paragraphs. Which one, \
is more of an accepted standard?
thereddevil — 2013-01-01T20:03:36-05:00 — #2
I am not sure I completely follow what your trying to do, if you could explain a little more it would be easier to help.
\r is carriage return and \
is line feed.
I won't go into the difference between them and how they work, as its mainly connected how printers was working a long time ago. Plus of course you can use them still in some consoles as well.
In the general scope, the difference with them on what your trying to do (assume web development, or creating documents) is:
is line separator in Unix
is line separator in Windows
\r is used by Mac up to OS 9
is used from Mac OS X
busboy — 2013-01-01T20:27:23-05:00 — #3
Well, I'm trying to clean up the data in my database. So if I need to change all of the \r\r\
, then that is what I'l work on. I found a function on the web that takes text from the database and correctly adds the paragraph opening and closing tags. However, it seems to only work when the data from the database is using \
So is the code on my website incorrect if the standard between paragraphs should be \
thereddevil — 2013-01-01T20:42:49-05:00 — #4
The way they are now is wrong, most probably the documents has been accessed or modified by different operating systems.
What you need to find out first is what OS the documents will be used on, and then change the line separators accordingly. I.e. if its UNIX/LINUX go with \
busboy — 2013-01-01T23:21:50-05:00 — #5
This is a web based project, so I have no control what type of OS the end user is on when they access the website. I develop the website and the mySQL client are Mac based.
system — 2014-10-07T23:28:18-04:00 — #6
This topic is now closed. New replies are no longer allowed.