Do not output HTML on empty descriptions
This commit is contained in:
parent
1354563e97
commit
67e6392dd2
19
Game.php
19
Game.php
|
@ -106,14 +106,17 @@ class Game {
|
|||
$output .= " by *".trim($this->author)."*";
|
||||
}
|
||||
}
|
||||
if (FORMAT === 'MARKDOWN') {
|
||||
$output .= "\n\n > ".$converter->convert($this->getDescription(), 'html', 'markdown_github')."\n";
|
||||
}
|
||||
if (FORMAT === 'HTML') {
|
||||
$output .= "\n<blockquote>".$this->getDescription()."</blockquote>\n";
|
||||
}
|
||||
if (FORMAT === 'MARKDOWN') {
|
||||
$output .= "\n";
|
||||
$description = $this->getDescription();
|
||||
if ($description !== '') {
|
||||
if (FORMAT === 'MARKDOWN') {
|
||||
$output .= "\n\n > ".$converter->convert($this->getDescription(), 'html', 'markdown_github')."\n";
|
||||
}
|
||||
if (FORMAT === 'HTML') {
|
||||
$output .= "\n<blockquote>".$this->getDescription()."</blockquote>\n";
|
||||
}
|
||||
if (FORMAT === 'MARKDOWN') {
|
||||
$output .= "\n";
|
||||
}
|
||||
}
|
||||
if (FORMAT === 'HTML') {
|
||||
$output .= "</li>\n";
|
||||
|
|
Reference in a new issue