# HG changeset patch # User Daniel Poelzleithner # Date 1286368485 -7200 # Node ID 20e0b64cc1f9e718fe0ae8e11bcbb84489f130d8 # Parent 21ddb78dd09d280f3b2ea0633e8a64ad5093e1bb use monospace/pre data on suggestion display and entry this allows better formatting on the user suggestions without the overhead of using wiki there fixes bug #215 diff -r 21ddb78dd09d -r 20e0b64cc1f9 app/main/suggestion/_suggestion.lua --- a/app/main/suggestion/_suggestion.lua Wed Oct 06 14:14:23 2010 +0200 +++ b/app/main/suggestion/_suggestion.lua Wed Oct 06 14:34:45 2010 +0200 @@ -13,7 +13,7 @@ attr = { class = "suggestion_content wiki" }, content = function() ui.tag{ - tag = "p", + tag = "pre", content = suggestion.description } end diff -r 21ddb78dd09d -r 20e0b64cc1f9 app/main/suggestion/new.lua --- a/app/main/suggestion/new.lua Wed Oct 06 14:14:23 2010 +0200 +++ b/app/main/suggestion/new.lua Wed Oct 06 14:34:45 2010 +0200 @@ -38,7 +38,7 @@ } end ui.field.text{ label = _"Title (80 chars max)", name = "name" } - ui.field.text{ label = _"Description", name = "description", multiline = true } + ui.field.text{ label = _"Description", name = "description", multiline = true, attr={id="suggestion_description"}} ui.field.select{ label = _"Degree", name = "degree", diff -r 21ddb78dd09d -r 20e0b64cc1f9 static/style.css --- a/static/style.css Wed Oct 06 14:14:23 2010 +0200 +++ b/static/style.css Wed Oct 06 14:34:45 2010 +0200 @@ -950,6 +950,12 @@ padding-right: 1ex; } + +.suggestion_content, +#suggestion_description { + font-family: monospace; +} + .diff { background-color: #eee; border: 1px solid #ccc;