Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Drop use of wbr, use word-wrap: break-word; — thanks, calebegg (refs #6

…).
  • Loading branch information...
commit 041787a3b54a8cbcad95f5d0a53f5e388569606a 1 parent c139fbb
@chrisdone authored
Showing with 1 addition and 5 deletions.
  1. +1 −0  demo.html
  2. +0 −5 jquery.console.js
View
1  demo.html
@@ -105,6 +105,7 @@
});
</script>
<style type="text/css" media="screen">
+ div.console1,div.console2,div.console3 { word-wrap: break-word; }
/* First console */
div.console1 { font-size: 14px }
div.console1 div.jquery-console-inner
View
5 jquery.console.js
@@ -91,10 +91,6 @@
68: deleteNextWord
};
var cursor = '<span class="jquery-console-cursor">&nbsp;</span>';
- // Opera only works with this character, not <wbr> or &shy;,
- // but IE6 displays this character, which is bad, so just use
- // it on Opera.
- var wbr = $.browser.opera? '' : '<wbr>&shy;';
////////////////////////////////////////////////////////////////////////
// Globals
@@ -632,7 +628,6 @@
.replace(/</g,'&lt;')
.replace(/ /g,'&nbsp;')
.replace(/\n/g,'<br />')
- .replace(/([^<>&]{10})/g,'$1' + wbr)
);
};
Please sign in to comment.
Something went wrong with that request. Please try again.