summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Medeiros <robert.medeiros@utoronto.ca>2005-04-14 07:16:55 +0200
committerRobert Medeiros <robert.medeiros@utoronto.ca>2005-04-14 07:16:55 +0200
commit187d0a4baf636e01458aab33aa02610aa3b74bc2 (patch)
treef8d4b3ddf28cef03354622f4fca74a8d3a7080e3
parente663d547ad722cf0db8311002228895ada706343 (diff)
downloadrpg-187d0a4baf636e01458aab33aa02610aa3b74bc2.tar.gz
rpg-187d0a4baf636e01458aab33aa02610aa3b74bc2.tar.bz2
remove extra <p> for XHTML 1.1 compliance
darcs-hash:20050414051655-8e73e-17414bc95a7ddd2b061d93c2cf2257b81f42ba0b.gz
-rw-r--r--inc/html.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/html.php b/inc/html.php
index 0c563f13d..70ebc1f76 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -154,6 +154,7 @@ function html_secedit($text,$show=true){
}else{
$text = preg_replace('#<!-- SECTION \[(\d*-\d*)\] -->#e','',$text);
}
+ $text = preg_replace('@<p>\s*</p>@', '', $text);
return $text;
}