nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9be129d
)
lib/markdown: ignore carriage return (fix error when received from Web)
author
Alexis Laferrière
<alexis.laf@xymus.net>
Fri, 4 Dec 2015 19:37:54 +0000
(14:37 -0500)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/lib/markdown/markdown.nit
b/lib/markdown/markdown.nit
index
7907409
..
037830f
100644
(file)
--- a/
lib/markdown/markdown.nit
+++ b/
lib/markdown/markdown.nit
@@
-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