linolium
11-21-2006, 05:56 AM
Is this a known behaviour?
Newlines are translated into <br />'s once when a comment is posted (index.php, line 949 or so) and once when a comment is displayed (functions.php, line 84). So if you type something like this in the comments box:
That was a really great photo.
It could have been more colourful though.
Keep posting great photos!
...it ends up coming out like this:
That was a really great photo.
It could have been more colourful though.
Keep posting great photos!
Definitely looks bizarre with the double newlines. To "fix" it I just changed line 84 of functions.php to not pass the $comment_message through nl2br. Of course you could also change the other one, but then you would have to go through and delete all <br/>'s in existing comments.
Newlines are translated into <br />'s once when a comment is posted (index.php, line 949 or so) and once when a comment is displayed (functions.php, line 84). So if you type something like this in the comments box:
That was a really great photo.
It could have been more colourful though.
Keep posting great photos!
...it ends up coming out like this:
That was a really great photo.
It could have been more colourful though.
Keep posting great photos!
Definitely looks bizarre with the double newlines. To "fix" it I just changed line 84 of functions.php to not pass the $comment_message through nl2br. Of course you could also change the other one, but then you would have to go through and delete all <br/>'s in existing comments.