Permalink
Browse files

hack up jquery-print plugin to format sample outputs correctly

  • Loading branch information...
1 parent 4f7e074 commit b71e7d69e0a91f58f301f54b17764202856cd5f2 Scott Bale committed Jun 2, 2010
Showing with 5 additions and 5 deletions.
  1. +3 −3 public/js/jquery-print.js
  2. +2 −2 public/js/showoffcore.js
View
6 public/js/jquery-print.js
@@ -62,13 +62,13 @@
var r = /["\\\x00-\x1f\x7f-\x9f]/g;
var str = r.test(value)
- ? '"' + value.replace(r, function (a) {
+ ? value.replace(r, function (a) {
var c = character_substitutions[a];
if (c) return c;
c = a.charCodeAt();
return '\\u00' + Math.floor(c / 16).toString(16) + (c % 16).toString(16);
- }) + '"'
- : '"' + value + '"';
+ })
+ : value ;
if (str.length > opts.max_string)
return str.slice(0, opts.max_string + 1) + '..."';
else
View
4 public/js/showoffcore.js
@@ -5,8 +5,8 @@
//nothing to do
};
CORE.out = function(output){
- result = result || "";
- result = result + '<br>'+output+'</br>';
+ result = result || '';
+ result = result + '<p>' + output + '</p>';
};
return CORE;

0 comments on commit b71e7d6

Please sign in to comment.