defendtheweb / hackthis.co.uk

HackThis!!
http://www.hackthis.co.uk
Other
46 stars 55 forks source link

Oversized code blocks #142

Closed SeinopSys closed 10 years ago

SeinopSys commented 10 years ago

BBCode code blocks have huge blank spaces between lines.

The reason behind this is that

  1. The CSS is missing a line-height: 1em
  2. The BBCode parser adds <br /> tags next to newlines, adding an extra row of nothing (due to the CSS wrap setting, both \n and <br> are considered a newline)