liquid_feedback_frontend
changeset 1728:c06c22e8ee35
Allow to use newlines in unit/area description
author | bsw |
---|---|
date | Tue Sep 28 13:54:08 2021 +0200 (2021-09-28) |
parents | 9b739047ec33 |
children | ae45894bbf08 |
files | env/format/text_with_links.lua |
line diff
1.1 --- a/env/format/text_with_links.lua Tue Sep 28 13:49:18 2021 +0200 1.2 +++ b/env/format/text_with_links.lua Tue Sep 28 13:54:08 2021 +0200 1.3 @@ -1,5 +1,6 @@ 1.4 function format.text_with_links(value) 1.5 value = encode.html(value) 1.6 + value = encode.html_newlines(value) 1.7 value = string.gsub(value, "http[^%s:]*://[^%s]+", function(match) 1.8 return "<a href=\"" .. match .. "\">" .. match .. "</a>" 1.9 end)