aboutsummaryrefslogtreecommitdiffstats
path: root/src/asciideck_to_html.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-06-12 22:32:13 +0200
committerLoïc Hoguin <[email protected]>2018-06-12 22:32:13 +0200
commit272386133de3684512ef3c371d2dc7f8b47d7c4a (patch)
tree102bd6a98e2eb85ce42c8a8f20dc36997a883f44 /src/asciideck_to_html.erl
parent9458416ef386d4a3c6ea42b27e7945db05bce08f (diff)
downloadasciideck-272386133de3684512ef3c371d2dc7f8b47d7c4a.tar.gz
asciideck-272386133de3684512ef3c371d2dc7f8b47d7c4a.tar.bz2
asciideck-272386133de3684512ef3c371d2dc7f8b47d7c4a.zip
Add forced line breaks
Diffstat (limited to 'src/asciideck_to_html.erl')
-rw-r--r--src/asciideck_to_html.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/asciideck_to_html.erl b/src/asciideck_to_html.erl
index 035ff96..b33150f 100644
--- a/src/asciideck_to_html.erl
+++ b/src/asciideck_to_html.erl
@@ -223,6 +223,8 @@ inline({strong, _, Text, _}) ->
["<strong>", inline(Text), "</strong>"];
inline({inline_literal_passthrough, _, Text, _}) ->
["<code>", inline(Text), "</code>"];
+inline({line_break, _, _, _}) ->
+ "<br/>";
inline(Text) when is_list(Text) ->
[inline(T) || T <- Text].