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