# HG changeset patch # User bsw # Date 1632830048 -7200 # Node ID c06c22e8ee3508d24e62bed8cbabc5f8c4c439f9 # Parent 9b739047ec330cbea4c494ab5ec43cd52bfc609a Allow to use newlines in unit/area description diff -r 9b739047ec33 -r c06c22e8ee35 env/format/text_with_links.lua --- a/env/format/text_with_links.lua Tue Sep 28 13:49:18 2021 +0200 +++ b/env/format/text_with_links.lua Tue Sep 28 13:54:08 2021 +0200 @@ -1,5 +1,6 @@ function format.text_with_links(value) value = encode.html(value) + value = encode.html_newlines(value) value = string.gsub(value, "http[^%s:]*://[^%s]+", function(match) return "" .. match .. "" end)