Preserve whitespaces in code tags. Fix #1079

This commit is contained in:
Mayhem 2013-05-04 20:00:41 +02:00
parent 475f166617
commit 9b3628b5ae
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
- Fix whitespaces not being preserved in code tags in /g/.
## 3.3.0 - *2013-05-02*
- **New feature**: `Quick Reply Personas`

View File

@ -7,7 +7,7 @@ Fourchan =
$.globalEval """
window.addEventListener('prettyprint', function(e) {
var pre = e.detail;
pre.innerHTML = prettyPrintOne(pre.innerHTML);
pre.innerHTML = prettyPrintOne(pre.innerHTML.replace(/\\s/g, ' '));
}, false);
"""
Post::callbacks.push