Skip to content
Snippets Groups Projects
Commit 716bc201 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

added nl2br()'s where appropriate!

UnConeD: will you add the nl2br()'s to your theme or do you want
         me to do so?  Remark that it will look screwed up (too
         many <br>'s) with the current stories but it won't with
         new entries ...
parent 6f6cc640
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -68,8 +68,8 @@ function abstract($story) { ...@@ -68,8 +68,8 @@ function abstract($story) {
print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>\n"; print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>\n";
print " <TR>\n"; print " <TR>\n";
print " <TD COLSPAN=\"2\">\n"; print " <TD COLSPAN=\"2\">\n";
if ($story->abstract) print " <P>$story->abstract</P>\n"; if ($story->abstract) print " <P>". nl2br($story->abstract) ."</P>\n";
if ($story->updates) print " <P><FONT COLOR=\"$this->bgcolor2\">Editor's note:</FONT> $story->updates</P>\n"; if ($story->updates) print " <P><FONT COLOR=\"$this->bgcolor2\">Editor's note:</FONT> ". nl2br($story->updates) ."</P>\n";
print " </TD>\n"; print " </TD>\n";
print " </TR>\n"; print " </TR>\n";
print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>\n"; print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>\n";
...@@ -98,9 +98,9 @@ function article($story, $reply) { ...@@ -98,9 +98,9 @@ function article($story, $reply) {
print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>\n"; print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>\n";
print " <TR>\n"; print " <TR>\n";
print " <TD COLSPAN=\"2\">\n"; print " <TD COLSPAN=\"2\">\n";
if ($story->abstract) print " <P>$story->abstract</P>\n"; if ($story->abstract) print " <P>". nl2br($story->abstract) ."</P>\n";
if ($story->updates) print " <P><FONT COLOR=\"$this->bgcolor2\">Editor's note:</FONT> $story->updates</P>\n"; if ($story->updates) print " <P><FONT COLOR=\"$this->bgcolor2\">Editor's note:</FONT>". nl2br($story->updates) ."</P>\n";
if ($story->article) print " <P>$story->article</P>\n"; if ($story->article) print " <P>". nl2br($story->article) ."</P>\n";
print " </TD>\n"; print " </TD>\n";
print " </TR>\n"; print " </TR>\n";
print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>\n"; print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>\n";
...@@ -216,7 +216,7 @@ function comment($poster, $subject, $comment, $timestamp, $url, $email, $score, ...@@ -216,7 +216,7 @@ function comment($poster, $subject, $comment, $timestamp, $url, $email, $score,
print " </TR>\n"; print " </TR>\n";
### Print body of comment: ### Print body of comment:
if ($comment) print " <TR><TD BGCOLOR=\"#FFFFFF\">$comment</TD></TR>\n"; if ($comment) print " <TR><TD BGCOLOR=\"#FFFFFF\">". nl2br($comment) ."</TD></TR>\n";
### Print thread (if any): ### Print thread (if any):
if ($thread) print " <TR><TD BGCOLOR=\"$this->bgcolor1\">$thread</TD></TR>\n"; if ($thread) print " <TR><TD BGCOLOR=\"$this->bgcolor1\">$thread</TD></TR>\n";
...@@ -248,9 +248,9 @@ function preview($author, $subject, $abstract, $updates, $article, $timestamp, $ ...@@ -248,9 +248,9 @@ function preview($author, $subject, $abstract, $updates, $article, $timestamp, $
print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>"; print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>";
print " <TR>"; print " <TR>";
print " <TD COLSPAN=\"2\">"; print " <TD COLSPAN=\"2\">";
if ($abstract) print "<P>$abstract</P>"; if ($abstract) print "<P>". nl2br($abstract) ."</P>";
if ($comments) print "<P><FONT COLOR=\"$this->bgcolor2\">Editor's note:</FONT> $comments</P>"; if ($comments) print "<P><FONT COLOR=\"$this->bgcolor2\">Editor's note:</FONT> ". nl2br($comments) ."</P>";
if ($article) print "<P>$article</P>"; if ($article) print "<P>". nl2br($article) ."</P>";
print " </TD>"; print " </TD>";
print " </TR>"; print " </TR>";
print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>"; print " <TR><TD COLSPAN=\"2\">&nbsp;</TD></TR>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment