summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/classes/class_reporthtml.php4
-rw-r--r--includes/classes/class_reportpdf.php11
2 files changed, 11 insertions, 4 deletions
diff --git a/includes/classes/class_reporthtml.php b/includes/classes/class_reporthtml.php
index 40b8b09f5e..0a9eb909e6 100644
--- a/includes/classes/class_reporthtml.php
+++ b/includes/classes/class_reporthtml.php
@@ -630,6 +630,8 @@ class CellHTML extends Cell {
return;
}
$temptext = str_replace("#PAGENUM#", $html->PageNo(), $this->text);
+ // underline «title» part of Source item
+ $temptext = str_replace(array('«', '»'), array('<u>', '</u>'), $temptext);
// Setup the style name
if ($html->getCurrentStyle() != $this->styleName) {
@@ -1147,6 +1149,8 @@ class TextHTML extends Text {
$html->setCurrentStyle($this->styleName);
}
$temptext = str_replace("#PAGENUM#", $html->PageNo(), $this->text);
+ // underline «title» part of Source item
+ $temptext = str_replace(array('«', '»'), array('<u>', '</u>'), $temptext);
// If any text at all
if (!empty($temptext)) {
diff --git a/includes/classes/class_reportpdf.php b/includes/classes/class_reportpdf.php
index ed441fc2fa..ce6ee6e503 100644
--- a/includes/classes/class_reportpdf.php
+++ b/includes/classes/class_reportpdf.php
@@ -661,7 +661,8 @@ class CellPDF extends Cell {
$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);
$match = array();
// Indicates if the cell background must be painted (1) or transparent (0)
if ($this->fill == 1) {
@@ -1143,7 +1144,9 @@ class TextPDF extends Text {
$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);
+
// Paint the text color or they might use inherited colors by the previous function
$match = array();
if (preg_match("/#?(..)(..)(..)/", $this->color, $match)) {
@@ -1288,8 +1291,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);
+ // 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