Permalink
Browse files

added hack to replace whitespace with norml space to work with fragme…

…ntion.js; update License year
  • Loading branch information...
Kartik Prabhu
Kartik Prabhu committed Dec 21, 2016
1 parent b463011 commit 3e578a5e13e311e62053f3b9c2a5edbf5f4804f5
Showing with 5 additions and 1 deletion.
  1. +1 −1 LICENSE
  2. +4 −0 fragmentioner.js
View
@@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2015 Kartik Prabhu
Copyright (c) 2016 Kartik Prabhu
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
View
@@ -81,6 +81,10 @@
width = rect.right - rect.left;
}
}
// hack to replace whitespaces with normal space to follow FF behaviour as of 2016-12-20; also compatible with fragmention.js
text = text.replace(/\s+/g, ' ');
return { text: text, node: node, left: left, top: top, width: width };
}

0 comments on commit 3e578a5

Please sign in to comment.