Permalink
Browse files

Fixed pre, no longer text-only

duh.. not sure why I did this
  • Loading branch information...
1 parent 6cbaa9c commit 95969e8b3283bbbb63e19d356587dee10613794f @tj tj committed Apr 5, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/parser.js
  2. +1 −1 test/jade.test.js
View
@@ -30,7 +30,7 @@ var Parser = exports = module.exports = function Parser(str, filename){
* Tags that may not contain tags.
*/
-var textOnly = exports.textOnly = ['pre', 'script', 'textarea', 'style'];
+var textOnly = exports.textOnly = ['code', 'script', 'textarea', 'style'];
/**
* Parser prototype.
View
@@ -316,7 +316,7 @@ module.exports = {
},
'test pipe-less text': function(assert){
- assert.equal('<pre>foo\n\nbar\n</pre>', render('pre\n foo\n\n bar'));
+ assert.equal('<pre><code>foo\n\nbar\n</code></pre>', render('pre\n code\n foo\n\n bar'));
assert.equal('<p>foo\n\nbar\n</p>', render('p.\n foo\n\n bar'));
assert.equal('<p>foo\n\n\n\nbar\n</p>', render('p.\n foo\n\n\n\n bar'));
assert.equal('<p>foo\n bar\nfoo\n</p>', render('p.\n foo\n bar\n foo'));

0 comments on commit 95969e8

Please sign in to comment.