{"action":"closed","issue":{"url":"https://api.github.com/repos/hhurz/tableExport.jquery.plugin/issues/124","repository_url":"https://api.github.com/repos/hhurz/tableExport.jquery.plugin","labels_url":"https://api.github.com/repos/hhurz/tableExport.jquery.plugin/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/hhurz/tableExport.jquery.plugin/issues/124/comments","events_url":"https://api.github.com/repos/hhurz/tableExport.jquery.plugin/issues/124/events","html_url":"https://github.com/hhurz/tableExport.jquery.plugin/issues/124","id":189618358,"number":124,"title":"Multiple lines","user":{"login":"kamparR","id":9059682,"avatar_url":"https://avatars.githubusercontent.com/u/9059682?v=3","gravatar_id":"","url":"https://api.github.com/users/kamparR","html_url":"https://github.com/kamparR","followers_url":"https://api.github.com/users/kamparR/followers","following_url":"https://api.github.com/users/kamparR/following{/other_user}","gists_url":"https://api.github.com/users/kamparR/gists{/gist_id}","starred_url":"https://api.github.com/users/kamparR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamparR/subscriptions","organizations_url":"https://api.github.com/users/kamparR/orgs","repos_url":"https://api.github.com/users/kamparR/repos","events_url":"https://api.github.com/users/kamparR/events{/privacy}","received_events_url":"https://api.github.com/users/kamparR/received_events","type":"User","site_admin":false},"labels":[{"id":329955732,"url":"https://api.github.com/repos/hhurz/tableExport.jquery.plugin/labels/Q&A","name":"Q&A","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-16T07:39:11Z","updated_at":"2016-12-02T20:53:02Z","closed_at":"2016-12-02T20:53:02Z","body":"In function parseString there is:\r\n`var text = htmlData.replace(/\\n/g,'\\u2028').replace(/<br\\s*[\\/]?>/gi, '\\u2060');\r\n            var obj = $('<div/>').html(text).contents();\r\n            text = '';\r\n\r\n            $.each(obj.text().split(\"\\u2028\"), function(i, v) {\r\n              if (i > 0)\r\n                text += \" \";\r\n              text += $.trim(v);\r\n            });\r\n\r\n            $.each(text.split(\"\\u2060\"), function(i, v) {\r\n              if (i > 0)\r\n                result += \"\\n\";\r\n              result += $.trim(v).replace(/\\u00AD/g, \"\"); // remove soft hyphens\r\n            });`\r\nIsn't that error? There shouldn't be: text += \"\\n\" ? Because for now you can't export text with multiple lines (separated by character: \\n) for example to csv. Current code replace \\n with \\u2028, split text by this and join with space instead of new line character"}}
{"actor":{"display_login":"hhurz"}}