summaryrefslogtreecommitdiff
path: root/inc/parserutils.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-07-16 13:12:25 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-07-16 13:12:25 +0200
commit87c434ceeeeb15fff4bbada53294c4dd63ecd9f6 (patch)
treed96783ad1c6aac24ec6c68226ffece22e8cf2255 /inc/parserutils.php
parent42ccccebedab0b07d7f4bad082e82b32a08902ea (diff)
downloadrpg-87c434ceeeeb15fff4bbada53294c4dd63ecd9f6.tar.gz
rpg-87c434ceeeeb15fff4bbada53294c4dd63ecd9f6.tar.bz2
useheading fixes #460 #465
darcs-hash:20050716111225-7ad00-913c36c65ac1a985fea60eed57fc7391328bfacd.gz
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r--inc/parserutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php
index 1dbc1430f..349e83725 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -321,7 +321,7 @@ function p_get_first_heading($id){
$instructions = p_cached_instructions($file,true);
foreach ( $instructions as $instruction ) {
if ($instruction[0] == 'header') {
- return $instruction[1][0];
+ return trim($instruction[1][0]);
}
}
}