Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
@avg Line breaks are not the same thing as paragraphs. Usually you want paragraphs. |
|
|
This looks like the same thing: http://userscripts.org/scripts/show/34577 |
|
|
why not text.value = text.value.replace(/(\n{2,})/g,"<br/>");
by the description, that's exactly what you want
|
|
|
This should work on forums, too. |
|
|
I'm not a javascript master, but I fixed it by changing to this: text.value = '<p>' + text.value text.value = text.value.replace(/(\n+)/g,'</p><p>$1'); text.value = text.value + '</p>' |
|
|
The first paragraph should get a tag, too. |
|
|
This is great. The site has a mind-bogglingly odd engine for handling journaling, and runon comments are very hard to read. This script restores readability which the author put in but OKCupid would want to strip out. |