nitdoc: fix `TplArticle::is_empty`
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 5 Sep 2014 02:23:03 +0000 (22:23 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 5 Sep 2014 03:45:53 +0000 (23:45 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/doc/doc_templates.nit

index ba49e38..783a005 100644 (file)
@@ -518,7 +518,7 @@ class TplArticle
        end
 
        redef fun is_empty: Bool do
-               return title == null and subtitle == null and content == null
+               return title == null and subtitle == null and content == null and children.is_empty
        end
 end