mirror of
https://tildegit.org/sbgodin/HtmGem.git
synced 2023-08-25 13:53:12 +02:00
FIX: textDecoration switch not updated
This commit is contained in:
parent
cef2417f91
commit
5df9d5ff15
@ -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 "<h3>$title</h3>\n";
|
||||
break;
|
||||
case "^^^":
|
||||
$this->textDecorationEnabled = !$this->textDecorationEnabled;
|
||||
$textDecoration = !$textDecoration;
|
||||
break;
|
||||
default:
|
||||
die("Unknown mode: '{$node["mode"]}'\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user