OSDN Git Service
(root)
/
sie
/
sie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
428c610
)
テキストの空白文字を一つに統一処理できるよう改良
author
dhrname
<dhrname@users.sourceforge.jp>
Sun, 24 Mar 2013 11:39:48 +0000
(20:39 +0900)
committer
dhrname
<dhrname@users.sourceforge.jp>
Sun, 24 Mar 2013 11:39:48 +0000
(20:39 +0900)
org/w3c/dom/svg.js
patch
|
blob
|
history
diff --git
a/org/w3c/dom/svg.js
b/org/w3c/dom/svg.js
index
0bc0fca
..
44f17b7
100644
(file)
--- a/
org/w3c/dom/svg.js
+++ b/
org/w3c/dom/svg.js
@@
-3810,7
+3810,8
@@
function SVGTextContentElement(_doc) {
if ((eph === /*Event.CAPTURING_PHASE*/ 1) && (tar.nodeType === /*Node.TEXT_NODE*/ 3) && !!!tar._tars) {
\r
/*Textノードにdiv要素を格納したリストをプロパティとして蓄えておく*/
\r
tar._tars = [];
\r
- var data = tar.data.replace(/^[\r\n\s]+|[\r\n\s]+$/g, "");
\r
+ /*空白文字を処理して一つのスペースに統一*/
\r
+ var data = tar.data.replace(/^[\r\n\s]+|[\r\n\s]+$/g, "").replace(/[\r\n\s]+/g, " ");
\r
tar.data = data;
\r
tar.length = data.length;
\r
data = data.split('');
\r