markdown:parseRule: fix extra `if', don't trim '\t'
This commit is contained in:
parent
75aa87b55f
commit
1be80a2179
@ -106,9 +106,9 @@ L:
|
||||
}
|
||||
|
||||
func (p *Parser) parseRule(rule int, s string) (tree *element) {
|
||||
_old := p.yy.ResetBuffer(s)
|
||||
if _old != "" && if strings.Trim(_old, "\t\r\n ") != "" {
|
||||
log.Fatalln("Buffer not empty", "["+_old+"]")
|
||||
old := p.yy.ResetBuffer(s)
|
||||
if old != "" && strings.Trim(old, "\r\n ") != "" {
|
||||
log.Fatalln("Buffer not empty", "["+old+"]")
|
||||
}
|
||||
err := p.yy.Parse(rule)
|
||||
switch rule {
|
||||
|
Loading…
Reference in New Issue
Block a user