Skip to content

Commit e29e463

Browse files
committed
fix(taBind): Corrected 'MS Word, some word spaces get lost (line break issue?)' #598
Suggested by Stevokk.
1 parent fde4253 commit e29e463

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/taBind.js

+2
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,8 @@ angular.module('textAngular.taBind', ['textAngular.factories', 'textAngular.DOM'
634634
if(_isOneNote){
635635
text = targetDom.html() || dom.html();
636636
}
637+
// LF characters instead of spaces in some spots and they are replaced by "/n", so we need to just swap them to spaces
638+
text = text.replace(/\n/g, ' ');
637639
}else{
638640
// remove unnecessary chrome insert
639641
text = text.replace(/<(|\/)meta[^>]*?>/ig, '');

0 commit comments

Comments
 (0)