Module:Sandbox: Difference between revisionsGive feedback
No edit summary |
No edit summary |
||
| Line 78: | Line 78: | ||
end | end | ||
-- Replace \"n with | -- Replace \"n with HTML line breaks | ||
label = label:gsub('\\"n', ' | label = label:gsub('\\"n', '<br>') | ||
return label | return label | ||
| Line 124: | Line 124: | ||
end | end | ||
-- Replace \"n with | -- Replace \"n with HTML line breaks in the result | ||
local result = data_lang[key] | local result = data_lang[key] | ||
result = result:gsub('\\"n', ' | result = result:gsub('\\"n', '<br>') | ||
return result | return result | ||