1
0

Added a check for an empty line when check for a quotation in mindflow.pug.

This commit is contained in:
Alexander Andreev 2023-09-25 16:57:20 +04:00
parent 24cf81a3ce
commit cbaa2f32b4
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -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