lib/string: teach clients to use non deprecated services.
[nit.git] / src / nitdoc.nit
index 4715068..abcc91f 100644 (file)
@@ -1785,7 +1785,7 @@ redef class ADoc
                for t in n_comment do
                        var text = t.text
                        text = text.substring_from(1)
-                       if text.first == ' ' then text = text.substring_from(1)
+                       if text.chars.first == ' ' then text = text.substring_from(1)
                        res.append(text.html_escape)
                end
                var str = res.to_s