Preserve whitespaces in code tags. Fix #1079
This commit is contained in:
parent
475f166617
commit
9b3628b5ae
@ -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`
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user