Replaced "new-line" with "space" for Description meta such as for Dublin Core and Open Graph integration (thanks to @jcamp on # 12)

This commit is contained in:
Giuseppe Di Terlizzi 2018-08-25 23:01:50 +02:00
parent 04e4a54701
commit da1aaf0cdd
2 changed files with 2 additions and 2 deletions

View file

@ -126,7 +126,7 @@ class helper_plugin_semantic extends DokuWiki_Plugin {
$user_data = $auth->getUserData($this->getAuthorID()); $user_data = $auth->getUserData($this->getAuthorID());
$license_url = $license['url']; $license_url = $license['url'];
$page_url = wl($this->page, '', true); $page_url = wl($this->page, '', true);
$description = $this->getDescription(); $description = str_replace("\n", ' ', $this->getDescription());
$created = date(DATE_W3C, $this->getCreatedDate()); $created = date(DATE_W3C, $this->getCreatedDate());
$modified = date(DATE_W3C, $this->getModifiedDate()); $modified = date(DATE_W3C, $this->getModifiedDate());
$title = (isset($this->meta['title']) ? $this->meta['title'] : $this->page); $title = (isset($this->meta['title']) ? $this->meta['title'] : $this->page);

View file

@ -1,7 +1,7 @@
base semantic base semantic
author Giuseppe Di Terlizzi author Giuseppe Di Terlizzi
email giuseppe.diterlizzi@gmail.com email giuseppe.diterlizzi@gmail.com
date 2018-08-15 date 2018-08-25
name Semantic Plugin name Semantic Plugin
desc Add Semantic Data in DokuWiki desc Add Semantic Data in DokuWiki
url http://www.dokuwiki.org/plugin:semantic url http://www.dokuwiki.org/plugin:semantic