Merge: Migration from ascii to code_point
[nit.git] / src / doc / doc_phases / doc_console.nit
index 9734ed3..b118019 100644 (file)
@@ -269,7 +269,7 @@ redef class ArticleCommand
 
        redef fun make_results(nitx, results) do
                var len = results.length
-               # FIXME how to render the pager for one worded namespaces like "standard"?
+               # FIXME how to render the pager for one worded namespaces like "core"?
                if len == 1 then
                        var page = results.first.as(PageMatch).page
                        var pager = new Pager
@@ -551,8 +551,8 @@ private class Pager
                                b.append("\\\\")
                        else if c == '`' then
                                b.append("'")
-                       else if c.ascii < 32 then
-                               b.append("\\{c.ascii.to_base(8, false)}")
+                       else if c.code_point < 32 then
+                               b.append("\\{c.code_point.to_base(8, false)}")
                        else
                                b.add(c)
                        end