neo_doxygen: Trim whitespace and empty descriptions.
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Mon, 24 Nov 2014 14:22:19 +0000 (09:22 -0500)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Tue, 25 Nov 2014 17:01:05 +0000 (12:01 -0500)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

contrib/neo_doxygen/src/doxml/doc.nit

index 84a880d..610bbf0 100644 (file)
@@ -25,6 +25,7 @@ class DocListener
 
        redef fun end_listening do
                super
-               doc.add(to_s)
+               var line = to_s.trim
+               if not line.is_empty then doc.add(line)
        end
 end