aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJoseph Pecoraro <joepeck02@gmail.com>2009-05-29 18:35:55 -0400
committerJoseph Pecoraro <joepeck02@gmail.com>2009-05-29 18:35:55 -0400
commitbf1b1e976b8315f67f82e324e6d3bc3d0b353fd5 (patch)
tree36a01b1faf2522276db8199c7157308451bea879 /activesupport
parentf68fca2e7665dec8efcc1f45477760ef266d3d43 (diff)
downloadrails-bf1b1e976b8315f67f82e324e6d3bc3d0b353fd5.tar.gz
rails-bf1b1e976b8315f67f82e324e6d3bc3d0b353fd5.tar.bz2
rails-bf1b1e976b8315f67f82e324e6d3bc3d0b353fd5.zip
Semi-fix for Firefox code Copy and Paste
The underlieing problem is that Firefox ignores the css 'white-space:pre' rule when actually copying and pasting. This Javascript turns newlines into <br /> tags inside the code containers. This will run in Safari, Opera, Chrome, Webkit, etc. gracefully. This will not run in IE due to IE not having the methods needed. A permanent solution would be at the Markdown level in such a way that the highlighter still runs on the output with brake tags.
Diffstat (limited to 'activesupport')
0 files changed, 0 insertions, 0 deletions