Commit 9136a21682541f3446bf43fd74febb55f2507c80

Authored by aurelio@colivre.coop.br
Committed by Daniela Feitosa
1 parent 642ed471

AI1851: correct the <pre> overflow inside Articles

Solve http://noosfero.org/Development/ActionItem1851

Unhappily, as i see, that is impossible to auto-test if a content is
overflowing a sized box. That is also impossible to auto-test if the
<pre> is bigger then the sized box, despite the content is forcing to
be bigger, and that i can't explain. It's clientWidth shows it with
the parent size. :-(

The good news is that is really easy to correct! :-)
We only need to style white-space: pre-wrap on <pre> elements inside
line-brakes as it must do, and add brakes at the end of the horizontal
space if need (what solves the bug).
http://www.w3.org/TR/CSS21/text.html#propdef-white-space

(ActionItem1851)
Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
public/stylesheets/application.css
... ... @@ -1010,6 +1010,10 @@ code input {
1010 1010 display: none;
1011 1011 }
1012 1012  
  1013 +#article pre {
  1014 + white-space: pre-wrap;
  1015 +}
  1016 +
1013 1017 /* * * Comments * * */
1014 1018  
1015 1019 .comments { }
... ...