summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-12-02 10:42:15 +0100
committerAndreas Gohr <andi@splitbrain.org>2014-12-02 10:42:15 +0100
commit2ebe3b0b9aaea67048a23ae1fa7b80bd4a9640d9 (patch)
tree25609eaa3f84a046ddeaa7d4d07a05a6810e4a32 /inc/parser/xhtml.php
parent5191adeed4cfba986d01988e25badcf030c22010 (diff)
parentd47f74a0328452bed21867aa4e20557b7d4564e4 (diff)
downloadrpg-2ebe3b0b9aaea67048a23ae1fa7b80bd4a9640d9.tar.gz
rpg-2ebe3b0b9aaea67048a23ae1fa7b80bd4a9640d9.tar.bz2
Merge pull request #940 from splitbrain/listnode2
Provide node/leaf state data in instructions
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 3a2e49155..b73e3a881 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -456,9 +456,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
* Open a list item
*
* @param int $level the nesting level
+ * @param bool $node true when a node; false when a leaf
*/
- function listitem_open($level) {
- $this->doc .= '<li class="level'.$level.'">';
+ function listitem_open($level, $node=false) {
+ $branching = $node ? ' node' : '';
+ $this->doc .= '<li class="level'.$level.$branching.'">';
}
/**