Skip to content

Commit

Permalink
Sources/Parser.swift - Fixed line-breaks in block quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
calebkleveter committed Mar 10, 2017
1 parent 22e6763 commit b8312f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Parser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ open class Parser {
html.append("<p>\(paragraph)</p>")
paragraph = ""
} else {
if orderedList == "" && unOrderedList == "" {
if orderedList == "" && unOrderedList == "" && blockQuote == "" {
html.append("<br/>")
}
}
Expand Down Expand Up @@ -147,6 +147,8 @@ open class Parser {
html.append("<ol>\(orderedList)</ol>")
} else if unOrderedList != "" {
html.append("<ul>\(unOrderedList)</ul>")
} else if blockQuote != "" {
html.append("<blockquote>\(blockQuote)</blockquote>")
}

return html
Expand Down

0 comments on commit b8312f5

Please sign in to comment.