fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixing white space handling
[fnpeditor.git]
/
modules
/
documentCanvas
/
canvas
/
canvas.js
diff --git
a/modules/documentCanvas/canvas/canvas.js
b/modules/documentCanvas/canvas/canvas.js
index
ba7daef
..
6131e4e
100644
(file)
--- a/
modules/documentCanvas/canvas/canvas.js
+++ b/
modules/documentCanvas/canvas/canvas.js
@@
-53,7
+53,10
@@
$.extend(Canvas.prototype, {
+ (endSpace && (spanParent || spanAfter) ? ' ' : '');
} else {
+ var oldLength = this.data.length;
this.data = $.trim(this.data);
+ if(this.data.length === 0 && oldLength > 0)
+ this.data = ' ';
}
});