From da1aaf0cdd892b1af007b6d5edd7e97ad48d2660 Mon Sep 17 00:00:00 2001 From: Giuseppe Di Terlizzi Date: Sat, 25 Aug 2018 23:01:50 +0200 Subject: [PATCH] Replaced "new-line" with "space" for Description meta such as for Dublin Core and Open Graph integration (thanks to @jcamp on # 12) --- helper.php | 2 +- plugin.info.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helper.php b/helper.php index 7950d3b..a2e003b 100644 --- a/helper.php +++ b/helper.php @@ -126,7 +126,7 @@ class helper_plugin_semantic extends DokuWiki_Plugin { $user_data = $auth->getUserData($this->getAuthorID()); $license_url = $license['url']; $page_url = wl($this->page, '', true); - $description = $this->getDescription(); + $description = str_replace("\n", ' ', $this->getDescription()); $created = date(DATE_W3C, $this->getCreatedDate()); $modified = date(DATE_W3C, $this->getModifiedDate()); $title = (isset($this->meta['title']) ? $this->meta['title'] : $this->page); diff --git a/plugin.info.txt b/plugin.info.txt index 4af6a18..2f43ff7 100644 --- a/plugin.info.txt +++ b/plugin.info.txt @@ -1,7 +1,7 @@ base semantic author Giuseppe Di Terlizzi email giuseppe.diterlizzi@gmail.com -date 2018-08-15 +date 2018-08-25 name Semantic Plugin desc Add Semantic Data in DokuWiki url http://www.dokuwiki.org/plugin:semantic