Skip to content

Commit

Permalink
Fix incorrect formatting due to too many <p>s
Browse files Browse the repository at this point in the history
  • Loading branch information
tomudding committed Nov 17, 2023
1 parent 5b03c2f commit d8e44cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions module/Activity/view/activity/activity/list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ use Laminas\View\Renderer\PhpRenderer;
<?php endforeach; ?>
</div>
<div class="col-md-8 reveal reveal-10">
<p>
<?= strip_tags(
$this->markdown($this->localiseText($activity->getDescription())),
['<p>'],
) ?>
</p>
<?= strip_tags(
$this->markdown($this->localiseText($activity->getDescription())),
['<p>'],
) ?>
<a class="reveal-button"><?= $this->translate('Continue reading') ?></a>
</div>
<div class="col-md-4">
Expand Down
2 changes: 1 addition & 1 deletion module/Activity/view/activity/activity/view.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ $this->headTitle($this->translate('Activities'));
<div class="row agenda-item">
<div class="col-md-9">
<div class="agenda-item-body">
<p><?= $this->markdown($this->localiseText($activity->getDescription())) ?></p>
<?= $this->markdown($this->localiseText($activity->getDescription())) ?>
</div>
</div>
<div class="col-md-3">
Expand Down

0 comments on commit d8e44cb

Please sign in to comment.