Added a check for an empty line when check for a quotation in mindflow.pug.
This commit is contained in:
parent
24cf81a3ce
commit
cbaa2f32b4
@ -32,7 +32,7 @@ block content
|
||||
a(href=`#${post.PostID()}`)
|
||||
h3= post.Category.Name + ": " + post.Title
|
||||
each line in strings.Split(post.Body, "\n")
|
||||
if (line[0] == '>')
|
||||
if (len(line) > 0 && line[0] == '>')
|
||||
p.quote!= line
|
||||
else
|
||||
p!= line
|
||||
|
Loading…
Reference in New Issue
Block a user