Skip to content

Commit

Permalink
fix(taBind): Corrected 'MS Word, some word spaces get lost (line brea…
Browse files Browse the repository at this point in the history
…k issue?)' #598

             Suggested by Stevokk.
  • Loading branch information
JoelParke committed Oct 2, 2016
1 parent fde4253 commit e29e463
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/taBind.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,8 @@ angular.module('textAngular.taBind', ['textAngular.factories', 'textAngular.DOM'
if(_isOneNote){
text = targetDom.html() || dom.html();
}
// LF characters instead of spaces in some spots and they are replaced by "/n", so we need to just swap them to spaces
text = text.replace(/\n/g, ' ');
}else{
// remove unnecessary chrome insert
text = text.replace(/<(|\/)meta[^>]*?>/ig, '');
Expand Down

0 comments on commit e29e463

Please sign in to comment.