summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-07-01 14:46:20 +0100
committerGreg Roach <greg@subaqua.co.uk>2021-07-01 14:46:20 +0100
commitc74ea67da20897a055de168780603a11e4f0594d (patch)
tree2e648322e1e4f6892896ceb1e79dd416de77f60b /app
parent48025cab01dfb27ec9070134f4ded35f637b67be (diff)
downloadwebtrees-c74ea67da20897a055de168780603a11e4f0594d.tar.gz
webtrees-c74ea67da20897a055de168780603a11e4f0594d.tar.bz2
webtrees-c74ea67da20897a055de168780603a11e4f0594d.zip
Fix: #2800 - remove spacer when fact has no value/date/place
Diffstat (limited to 'app')
-rw-r--r--app/Functions/FunctionsPrintFacts.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Functions/FunctionsPrintFacts.php b/app/Functions/FunctionsPrintFacts.php
index dacce3899d..37f190d165 100644
--- a/app/Functions/FunctionsPrintFacts.php
+++ b/app/Functions/FunctionsPrintFacts.php
@@ -211,7 +211,10 @@ class FunctionsPrintFacts
// Print the place of this fact/event
echo '<div class="place">', FunctionsPrint::formatFactPlace($fact, true, true, true), '</div>';
// A blank line between the primary attributes (value, date, place) and the secondary ones
- echo '<br>';
+
+ if ($value !== '' || $fact->attribute('PLAC') !== '' || $fact->attribute('DATE') !== '') {
+ echo '<br>';
+ }
$addr = $fact->attribute('ADDR');
if ($addr !== '') {