projects
/
thericegoat.com.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ecf4b4
)
added no-space meta class and function
author
Eduardo
<
[email protected]
>
Thu, 23 Nov 2023 20:34:52 +0000
(21:34 +0100)
committer
Eduardo
<
[email protected]
>
Thu, 23 Nov 2023 20:34:52 +0000
(21:34 +0100)
page-generator/generator.php
patch
|
blob
|
history
diff --git
a/page-generator/generator.php
b/page-generator/generator.php
index 6a6f0a62265edcb20a12ccc7f94f0cb0d8a4e913..6d3ebea961d3a4a339522a517e90b6b524d36fbf 100644
(file)
--- a/
page-generator/generator.php
+++ b/
page-generator/generator.php
@@
-270,7
+270,7
@@
class CodeGenerator
*/
private function filter_meta_classes(array $class): array
{
- $meta_classes = ["same-line", "new-col", "list"];
+ $meta_classes = ["same-line", "n
o-space", "n
ew-col", "list"];
return array_diff($class, $meta_classes);
}
@@
-299,6
+299,9
@@
class CodeGenerator
else
$html .= ' ';
+ if (in_array("no-space", $class))
+ $html = trim($html);
+
return $html;
}