From b443355fc1f32512f2530652cd151599a7ad77d8 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 4 Dec 2023 15:39:26 +0100 Subject: don't render empty lines --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 058ce90..6e01dfd 100644 --- a/index.php +++ b/index.php @@ -66,7 +66,9 @@ if ($response->getStatusCode()->value == 20) { echo "$line[text]"; } else if ($line['type'] === 'text') { - echo "

$line[text]

"; + if (! empty($line['text'])) { + echo "

$line[text]

"; + } } } } -- cgit v1.2.3