aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsuVene2009-01-19 13:10:18 +0000
committersuVene2009-01-19 13:10:18 +0000
commitda5a784c17ec578b05fea97b4c83e9911d1df05a (patch)
tree7cb94e0332a74ca7dc4251ac3127ee2fa0b691da
parentbaddb0940622318a8df20218ffdd34581d6b60fc (diff)
downloadvimperator-plugins-da5a784c17ec578b05fea97b4c83e9911d1df05a.tar.bz2
* getHTMLFragment の 改行trim を削除してみた。不具合なければ他で対応のかんじで。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28668 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--_libly.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/_libly.js b/_libly.js
index 915e17e..28b191f 100644
--- a/_libly.js
+++ b/_libly.js
@@ -12,7 +12,7 @@ var PLUGIN_INFO =
<description lang="ja">適当なライブラリっぽいものたち。</description>
<author mail="suvene@zeromemory.info" homepage="http://zeromemory.sblo.jp/">suVene</author>
<license>MIT</license>
- <version>0.1.20</version>
+ <version>0.1.21</version>
<minVersion>1.2</minVersion>
<maxVersion>2.0pre</maxVersion>
<updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/_libly.js</updateURL>
@@ -281,7 +281,7 @@ libly.$U = {//{{{
},
getHTMLFragment: function(html) {
if (!html) return html;
- return html.replace(/^[\s\S]*?<html(?:[ \t\n\r][^>]*)?>|<\/html[ \t\r\n]*>[\S\s]*$/ig, '').replace(/[\r\n]+/g, ' ');
+ return html.replace(/^[\s\S]*?<html(?:[ \t\n\r][^>]*)?>|<\/html[ \t\r\n]*>[\S\s]*$/ig, '');
},
stripTags: function(str, tags) {
var ignoreTags = '(?:' + [].concat(tags).join('|') + ')';