diff options
author | ArthurHoaro <arthur@hoa.ro> | 2019-09-12 19:32:30 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2019-09-12 19:38:37 +0200 |
commit | 0baa65813092459ff57dd599225f44e2a789ed8d (patch) | |
tree | 1fda6ada4810730662e4da674147d98a135d30ba /application/feed/FeedBuilder.php | |
parent | 51837fe8ba2ed2ce191210d1d734fb27cb0329f9 (diff) | |
download | Shaarli-0baa65813092459ff57dd599225f44e2a789ed8d.tar.gz Shaarli-0baa65813092459ff57dd599225f44e2a789ed8d.tar.zst Shaarli-0baa65813092459ff57dd599225f44e2a789ed8d.zip |
Fix RSS permalink included in Markdown bloc
Adds another line break before inserting RSS permalink to avoid including it in markdown blocs, such as blockquote.
Diffstat (limited to 'application/feed/FeedBuilder.php')
-rw-r--r-- | application/feed/FeedBuilder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/feed/FeedBuilder.php b/application/feed/FeedBuilder.php index 7c859474..957c8273 100644 --- a/application/feed/FeedBuilder.php +++ b/application/feed/FeedBuilder.php | |||
@@ -157,7 +157,7 @@ class FeedBuilder | |||
157 | $permalink = '<a href="' . $link['guid'] . '" title="' . t('Permalink') . '">' . t('Permalink') . '</a>'; | 157 | $permalink = '<a href="' . $link['guid'] . '" title="' . t('Permalink') . '">' . t('Permalink') . '</a>'; |
158 | } | 158 | } |
159 | $link['description'] = format_description($link['description'], $pageaddr); | 159 | $link['description'] = format_description($link['description'], $pageaddr); |
160 | $link['description'] .= PHP_EOL . '<br>— ' . $permalink; | 160 | $link['description'] .= PHP_EOL . PHP_EOL . '<br>— ' . $permalink; |
161 | 161 | ||
162 | $pubDate = $link['created']; | 162 | $pubDate = $link['created']; |
163 | $link['pub_iso_date'] = $this->getIsoDate($pubDate); | 163 | $link['pub_iso_date'] = $this->getIsoDate($pubDate); |