mirror of
https://github.com/YGGverse/gemtext-php.git
synced 2026-03-31 09:45:33 +00:00
enshort condition
This commit is contained in:
parent
73fe0b374f
commit
5a953816e1
1 changed files with 1 additions and 7 deletions
|
|
@ -58,12 +58,6 @@ class Code
|
|||
|
||||
public function toString(): string
|
||||
{
|
||||
if ($this->_inline)
|
||||
{
|
||||
return $this->_alt ? self::TAG . $this->_alt . self::TAG
|
||||
: self::TAG;
|
||||
}
|
||||
|
||||
return self::TAG . $this->_alt;
|
||||
return self::TAG . $this->_alt . ($this->_inline ? self::TAG : null);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue