From 5df9d5ff1535dfe4e32eff147eff3c41b55bea0f Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Fri, 19 Mar 2021 17:49:00 +0100 Subject: [PATCH] FIX: textDecoration switch not updated --- lib-htmgem.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib-htmgem.php b/lib-htmgem.php index cf2c3cc..a5635fa 100644 --- a/lib-htmgem.php +++ b/lib-htmgem.php @@ -168,7 +168,7 @@ class GemtextTranslate_html { protected $pageTitle = ""; public $translatedGemtext; - function __construct($parsedGemtext, $textDecorationEnabled=true) { + function __construct($parsedGemtext, $textDecoration=true) { if (empty($parsedGemtext)) $parsedGemtext = ""; elseif (is_string($parsedGemtext)) @@ -177,7 +177,7 @@ class GemtextTranslate_html { // The text must be parsed $parsedGemtext = gemtextParser($parsedGemtext); $this->parsedGemtext = $parsedGemtext; - $this->translate($textDecorationEnabled); + $this->translate($textDecoration); } function addCss($css) { @@ -308,7 +308,7 @@ class GemtextTranslate_html { echo "

$title

\n"; break; case "^^^": - $this->textDecorationEnabled = !$this->textDecorationEnabled; + $textDecoration = !$textDecoration; break; default: die("Unknown mode: '{$node["mode"]}'\n");