diff options
Diffstat (limited to 'inc/parser/handler.php')
-rw-r--r-- | inc/parser/handler.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 9f158e4a8..b36fd142b 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -1047,7 +1047,9 @@ class Doku_Handler_Preformatted { $this->text .= $call[1][0]; break; case 'preformatted_end': - $this->CallWriter->writeCall(array('preformatted',array($this->text),$this->pos)); + if (trim($this->text)) { + $this->CallWriter->writeCall(array('preformatted',array($this->text),$this->pos)); + } break; } } |