liquid_feedback_frontend

changeset 181:105abd1d4996

Respect newlines in suggestions instead of pre-formatting them
author bsw
date Sun Oct 31 23:51:00 2010 +0100 (2010-10-31)
parents 02aacb3dffe0
children 24b61c3fd933
files app/main/suggestion/_suggestion.lua static/style.css
line diff
     1.1 --- a/app/main/suggestion/_suggestion.lua	Sun Oct 31 23:38:43 2010 +0100
     1.2 +++ b/app/main/suggestion/_suggestion.lua	Sun Oct 31 23:51:00 2010 +0100
     1.3 @@ -12,10 +12,7 @@
     1.4      ui.container{
     1.5        attr = { class = "suggestion_content wiki" },
     1.6        content = function()
     1.7 -        ui.tag{
     1.8 -          tag = "pre",
     1.9 -          content = suggestion.description
    1.10 -        }
    1.11 +        slot.put(encode.html_newlines(suggestion.description))
    1.12        end
    1.13      }
    1.14    end
     2.1 --- a/static/style.css	Sun Oct 31 23:38:43 2010 +0100
     2.2 +++ b/static/style.css	Sun Oct 31 23:51:00 2010 +0100
     2.3 @@ -999,9 +999,8 @@
     2.4  }
     2.5  
     2.6  
     2.7 -.suggestion_content,
     2.8  #suggestion_description {
     2.9 -  font-family: monospace;
    2.10 +  height: 15ex;
    2.11  }
    2.12  
    2.13  .diff {

Impressum / About Us