mirror of https://tildegit.org/sbgodin/HtmGem.git
Compare commits
2 Commits
1bc2e3b2bc
...
d68b403f33
Author | SHA1 | Date |
---|---|---|
Christophe HENRY | d68b403f33 | |
Christophe HENRY | b5083aaabd |
|
@ -128,11 +128,12 @@ if ("none" == $style) {
|
||||||
# Warning, using htmhem.php?url=… will make $localCss not found
|
# Warning, using htmhem.php?url=… will make $localCss not found
|
||||||
# as the path is relative to htmgem.php and not / !
|
# as the path is relative to htmgem.php and not / !
|
||||||
$gt_html->addCss($localCss);
|
$gt_html->addCss($localCss);
|
||||||
|
} else { // No local style
|
||||||
|
$gt_html->addCss($php_self_dir."/css/htmgem.css");
|
||||||
}
|
}
|
||||||
} else { #TODO: regex check for $style
|
} else { #TODO: regex check for $style
|
||||||
$gt_html->addCss("$php_self_dir/css/$style.css");
|
$gt_html->addCss("$php_self_dir/css/$style.css");
|
||||||
}
|
}
|
||||||
if (empty($gt_html->getCss)) $gt_html->addCss($php_self_dir."/css/htmgem.css");
|
|
||||||
|
|
||||||
if ($urlRewriting)
|
if ($urlRewriting)
|
||||||
echo \htmgem\html\getHtmlWithMenu($gt_html, $scheme, $domain, $url);
|
echo \htmgem\html\getHtmlWithMenu($gt_html, $scheme, $domain, $url);
|
||||||
|
|
|
@ -319,6 +319,7 @@ class GemtextTranslate_html {
|
||||||
|
|
||||||
protected static function spacesCompress(&$text) {
|
protected static function spacesCompress(&$text) {
|
||||||
# Replaces several spaces (0x20) by only one
|
# Replaces several spaces (0x20) by only one
|
||||||
|
if (empty($text)) $text = "";
|
||||||
$text = preg_replace("/ +/", " ", $text);
|
$text = preg_replace("/ +/", " ", $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue