Module:Sandbox: Difference between revisions

No edit summary
No edit summary
Line 78: Line 78:
     end
     end
      
      
     -- Replace \"n with newline characters
     -- Replace \"n with HTML line breaks
     label = label:gsub('\\"n', '\n')
     label = label:gsub('\\"n', '<br>')
      
      
     return label
     return label
Line 124: Line 124:
     end
     end


     -- Replace \"n with newline characters in the result
     -- Replace \"n with HTML line breaks in the result
     local result = data_lang[key]
     local result = data_lang[key]
     result = result:gsub('\\"n', '\n')
     result = result:gsub('\\"n', '<br>')
      
      
     return result
     return result