all repos — grayfriday @ 2b483a85554cd1b60230d4a49858f80be43ace23

blackfriday fork with a few changes

Merge pull request #310 from Ambrevar/v2FixWalkNoContainer

v2: Fix walk with non-container root nodes
Vytautas Ĺ altenis vytas@rtfb.lt
Sat, 08 Oct 2016 18:24:09 +0300
commit

2b483a85554cd1b60230d4a49858f80be43ace23

parent

6141d5fde123676abca66f4a2186175dfc1a5c50

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M node.gonode.go

@@ -309,7 +309,7 @@ }

} func (nw *nodeWalker) next() { - if !nw.entering && nw.current == nw.root { + if (!nw.current.isContainer() || !nw.entering) && nw.current == nw.root { nw.current = nil return }