Fixed #299: reverted the fix of #268 by trimming text in fields and values

This commit is contained in:
jos 2016-05-22 14:59:37 +02:00
parent 7d283f1b90
commit 8c3c476fe7
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,11 @@
https://github.com/josdejong/jsoneditor https://github.com/josdejong/jsoneditor
## not yet released, version 5.5.3
- Fixed #299: reverted the fix of #268 by trimming text in fields and values.
## 2016-04-18, version 5.5.2 ## 2016-04-18, version 5.5.2
- Fixed #294: Fields reset their caret location on every key press in Firefox. - Fixed #294: Fields reset their caret location on every key press in Firefox.

View File

@ -3460,7 +3460,7 @@ Node.prototype._escapeHTML = function (text) {
* @private * @private
*/ */
Node.prototype._unescapeHTML = function (escapedText) { Node.prototype._unescapeHTML = function (escapedText) {
var json = '"' + this._escapeJSON(escapedText.trim()) + '"'; var json = '"' + this._escapeJSON(escapedText) + '"';
var htmlEscaped = util.parse(json); var htmlEscaped = util.parse(json);
return htmlEscaped return htmlEscaped