lib/markdown: ignore carriage return (fix error when received from Web)
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 4 Dec 2015 19:37:54 +0000 (14:37 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 4 Dec 2015 21:52:30 +0000 (16:52 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/markdown/markdown.nit

index 7907409..037830f 100644 (file)
@@ -168,6 +168,7 @@ class MarkdownProcessor
                                var c = input[i]
                                if c == '\n' then
                                        eol = true
+                               else if c == '\r' then
                                else if c == '\t' then
                                        var np = pos + (4 - (pos & 3))
                                        while pos < np do