summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorŁukasz Wilenski <wooc@gazeta.pl>2010-12-27 17:18:56 +0000
committerŁukasz Wilenski <wooc@gazeta.pl>2010-12-27 17:18:56 +0000
commit5c5e72e9f5d2d4339bbbbed6b58015dc48d92a98 (patch)
treecb97fa7b909cacde8e9de26506fdb2079eafae65 /includes
parente7255940ca602f5a87b41ff6853dbbe7de23bd59 (diff)
downloadwebtrees-5c5e72e9f5d2d4339bbbbed6b58015dc48d92a98.tar.gz
webtrees-5c5e72e9f5d2d4339bbbbed6b58015dc48d92a98.tar.bz2
webtrees-5c5e72e9f5d2d4339bbbbed6b58015dc48d92a98.zip
fix incorrect Source footnote format
Diffstat (limited to 'includes')
-rw-r--r--includes/classes/class_reporthtml.php2
-rw-r--r--includes/classes/class_reportpdf.php2
2 files changed, 4 insertions, 0 deletions
diff --git a/includes/classes/class_reporthtml.php b/includes/classes/class_reporthtml.php
index a06e40e480..40b8b09f5e 100644
--- a/includes/classes/class_reporthtml.php
+++ b/includes/classes/class_reporthtml.php
@@ -1322,6 +1322,8 @@ class FootnoteHTML extends Footnote {
}
$temptext = str_replace("#PAGENUM#", $html->PageNo(), $this->text);
+ // underline title part of Source item
+ $temptext = str_replace(array('', ''), array('<u>', '</u>'), $temptext);
echo "\n<div><a name=\"footnote", $this->num, "\"></a>";
$html->write($this->num. ". ". $temptext);
echo "</div>";
diff --git a/includes/classes/class_reportpdf.php b/includes/classes/class_reportpdf.php
index 791bd8cb33..ed441fc2fa 100644
--- a/includes/classes/class_reportpdf.php
+++ b/includes/classes/class_reportpdf.php
@@ -1288,6 +1288,8 @@ class FootnotePDF extends Footnote {
$pdf->setCurrentStyle($this->styleName);
}
$temptext = str_replace("#PAGENUM#", $pdf->PageNo(), $this->text);
+ // underline title part of Source item
+ $temptext = str_replace(array('', ''), array('<u>', '</u>'), $temptext);
// Set the link to this y/page position
$pdf->SetLink($this->addlink, -1, -1);
// Print first the source number