nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stdlib/strings: Removed usage of Strings as SequenceRead by using chars.
[nit.git]
/
src
/
markdown.nit
diff --git
a/src/markdown.nit
b/src/markdown.nit
index
2d2b6e4
..
d4b7a81
100644
(file)
--- a/
src/markdown.nit
+++ b/
src/markdown.nit
@@
-51,7
+51,7
@@
private class Doc2Mdwn
# Count the number of spaces
lastindent = indent
indent = 0
# Count the number of spaces
lastindent = indent
indent = 0
- while text.length > indent and text[indent] == ' ' do indent += 1
+ while text.length > indent and text.chars[indent] == ' ' do indent += 1
# Is codeblock? Then just collect them
if indent > 4 then
# Is codeblock? Then just collect them
if indent > 4 then