nitodoc: stop generating id for lines in examples
authorJean Privat <jean@pryen.org>
Tue, 16 Dec 2014 13:57:53 +0000 (08:57 -0500)
committerJean Privat <jean@pryen.org>
Wed, 17 Dec 2014 04:43:30 +0000 (23:43 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/doc/doc_down.nit

index c9db676..1c77939 100644 (file)
@@ -93,6 +93,7 @@ private class NitdocDecorator
                end
                v.add "<pre class=\"nitcode\"><code>"
                var hl = new HighlightVisitor
+               hl.line_id_prefix = ""
                hl.enter_visit(ast)
                v.add(hl.html)
                v.add "</code></pre>\n"
@@ -109,6 +110,7 @@ private class NitdocDecorator
                else
                        v.add "<code class=\"nitcode\">"
                        var hl = new HighlightVisitor
+                       hl.line_id_prefix = ""
                        hl.enter_visit(ast)
                        v.add(hl.html)
                end