git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0173ca6
)
issue/activity: prevent abbreviation of subsequent images
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 6 May 2021 17:19:22 +0000
(19:19 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 8 May 2021 18:12:18 +0000
(20:12 +0200)
Fix cropped image after multiple paragraphs.
widget/issue/activity.php
patch
|
blob
|
history
diff --git
a/widget/issue/activity.php
b/widget/issue/activity.php
index a153f872c0763d6a7670c28ec1cdfb87bd3d0039..df872ae621f7eb73b75764932a8017295bd12d86 100644
(file)
--- a/
widget/issue/activity.php
+++ b/
widget/issue/activity.php
@@
-11,8
+11,8
@@
$query = $Db->query($sql);
$rows = $query->fetchall();
$msgformat = [
+ '{(.*)(<p><img [^>]+></p>)\s*}s' => "$2$1",
"{(?=</p>\n).+}s" => ' <small class="footer">(Meer op de site)</small>',
- '{(.*)(<p><img [^>]+></p>)\s*}s' => "$2\n$1",
'{(?<=<img src=")(?:/thumb/[^/]+)?(?=/)}' => '/thumb/300x',
];