{"action":"created","issue":{"url":"https://api.github.com/repos/umap-project/umap/issues/295","repository_url":"https://api.github.com/repos/umap-project/umap","labels_url":"https://api.github.com/repos/umap-project/umap/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/umap-project/umap/issues/295/comments","events_url":"https://api.github.com/repos/umap-project/umap/issues/295/events","html_url":"https://github.com/umap-project/umap/issues/295","id":140960012,"node_id":"MDU6SXNzdWUxNDA5NjAwMTI=","number":295,"title":"Newline in placeholder","user":{"login":"cascafico","id":6792869,"node_id":"MDQ6VXNlcjY3OTI4Njk=","avatar_url":"https://avatars0.githubusercontent.com/u/6792869?v=4","gravatar_id":"","url":"https://api.github.com/users/cascafico","html_url":"https://github.com/cascafico","followers_url":"https://api.github.com/users/cascafico/followers","following_url":"https://api.github.com/users/cascafico/following{/other_user}","gists_url":"https://api.github.com/users/cascafico/gists{/gist_id}","starred_url":"https://api.github.com/users/cascafico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cascafico/subscriptions","organizations_url":"https://api.github.com/users/cascafico/orgs","repos_url":"https://api.github.com/users/cascafico/repos","events_url":"https://api.github.com/users/cascafico/events{/privacy}","received_events_url":"https://api.github.com/users/cascafico/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-03-15T12:34:27Z","updated_at":"2018-11-20T19:17:44Z","closed_at":null,"author_association":"NONE","body":"Bonjour,\n\nHow can I  include newlines? \n\nExample, not working:\n\n{name} contains \"amenity=bar\\nrestaurant=yes\"\n\nI'd like popup like this:\n\namenity=bar\nrestaurant=yes\n"},"comment":{"url":"https://api.github.com/repos/umap-project/umap/issues/comments/440397418","html_url":"https://github.com/umap-project/umap/issues/295#issuecomment-440397418","issue_url":"https://api.github.com/repos/umap-project/umap/issues/295","id":440397418,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDM5NzQxOA==","user":{"login":"nrenner","id":1092030,"node_id":"MDQ6VXNlcjEwOTIwMzA=","avatar_url":"https://avatars3.githubusercontent.com/u/1092030?v=4","gravatar_id":"","url":"https://api.github.com/users/nrenner","html_url":"https://github.com/nrenner","followers_url":"https://api.github.com/users/nrenner/followers","following_url":"https://api.github.com/users/nrenner/following{/other_user}","gists_url":"https://api.github.com/users/nrenner/gists{/gist_id}","starred_url":"https://api.github.com/users/nrenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrenner/subscriptions","organizations_url":"https://api.github.com/users/nrenner/orgs","repos_url":"https://api.github.com/users/nrenner/repos","events_url":"https://api.github.com/users/nrenner/events{/privacy}","received_events_url":"https://api.github.com/users/nrenner/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T19:17:44Z","updated_at":"2018-11-20T19:17:44Z","author_association":"NONE","body":"It works if the CSV field contains actual line breaks (not \"\\n\") and is enclosed in double quotation marks:\r\n\r\n```\r\nHANDICAPS,lon,lat\r\n\"auditif\r\nmental\",10.0,51.0\r\n```\r\n\r\n\r\n\r\nuMap uses [csv2geojson](https://github.com/mapbox/csv2geojson), that again uses [d3-dsv](https://github.com/d3/d3-dsv), that implements [RFC 4180 (Common Format and MIME Type for CSV Files)](https://tools.ietf.org/html/rfc4180). It defines:\r\n```\r\n   6.  Fields containing line breaks (CRLF), double quotes, and commas\r\n       should be enclosed in double-quotes.  For example:\r\n\r\n       \"aaa\",\"b CRLF\r\n       bb\",\"ccc\" CRLF\r\n       zzz,yyy,xxx\r\n```\r\n"}}
{"actor":{"display_login":"nrenner"}}