nitdoc: Remove empty title from <a> links
authorAlexandre Terrasa <alexandre@moz-concept.com>
Mon, 30 Apr 2012 01:47:38 +0000 (21:47 -0400)
committerAlexandre Terrasa <alexandre@moz-concept.com>
Mon, 30 Apr 2012 15:32:40 +0000 (11:32 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-concept.com>

src/nitdoc.nit

index a7ec4bd..b35d581 100644 (file)
@@ -465,7 +465,11 @@ end
 redef class MMModule
        super MMEntity
        redef fun html_link(dctx) do 
-               return "<a href=\"{html_name}.html\" title=\"{short_doc}\">{self}</a>"
+               if short_doc == "&nbsp;" then
+                       return "<a href=\"{html_name}.html\"\">{self}</a>"
+               else 
+                       return "<a href=\"{html_name}.html\" title=\"{short_doc}\">{self}</a>"
+               end
        end
 
        redef fun json_entry(dctx) do
@@ -1207,7 +1211,11 @@ redef class MMLocalClass
        redef fun html_link(dctx)
        do
                if not require_doc(dctx) then print "{dctx.filename}: not required {self}"
-               return "<a href=\"{html_name}.html\" title=\"{short_doc}\">{self}</a>"
+               if short_doc == "&nbsp;" then
+                       return "<a href=\"{html_name}.html\"\">{self}</a>"
+               else 
+                       return "<a href=\"{html_name}.html\" title=\"{short_doc}\">{self}</a>"
+               end
        end
 
        redef fun json_entry(dctx) do