mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Issue #2 : EOF breaks parsing
This commit is contained in:
parent
ad605c0a32
commit
2988e183ed
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ func (r *reader) AdvanceLine() {
|
|||
if r.pos.Start < 0 {
|
||||
return
|
||||
}
|
||||
r.pos.Stop = invalidValue
|
||||
r.pos.Stop = r.sourceLength
|
||||
for i := r.pos.Start; i < r.sourceLength; i++ {
|
||||
c := r.source[i]
|
||||
if c == '\n' {
|
||||
|
|
|
|||
Loading…
Reference in a new issue