use skipChar() more

This commit is contained in:
Krzysztof Kowalczyk 2018-01-26 01:54:36 -08:00
parent e1781bdd2c
commit 68a053c1ce
1 changed files with 1 additions and 3 deletions

View File

@ -1307,9 +1307,7 @@ func (p *Parser) listItem(data []byte, flags *ListType) int {
}
// skip leading whitespace on first line
for i < len(data) && data[i] == ' ' {
i++
}
i = skipChar(data, i, ' ')
// find the end of the line
line := i