Skip to content

Commit

Permalink
Fix the presence of blank line after summary closing tag
Browse files Browse the repository at this point in the history
This caused Blackfriday to close the prior opened <p class="details">
paragraph.
  • Loading branch information
kaushalmodi committed May 24, 2018
1 parent 2bc4448 commit 3c9bad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ox-hugo.el
Expand Up @@ -2304,7 +2304,7 @@ INFO is a plist holding export options."
;; can be set for the details portion following the
;; <summary> element, using "details .details".
(str2 (replace-regexp-in-string
"\\(<summary>\\(?:.\\|\n\\)*\\)\\(</summary>\\)"
"\\(<summary>\\(?:.\\|\n\\)*\\)\\(</summary>\n\\)"
"\\1\n\\2<p class=\"details\">" ;That \n is the newline before </summary>
str1))
(has-summary (not (string= str1 str2))))
Expand Down

0 comments on commit 3c9bad7

Please sign in to comment.