{"action":"opened","issue":{"url":"https://api.github.com/repos/statamic/v2-hub/issues/930","repository_url":"https://api.github.com/repos/statamic/v2-hub","labels_url":"https://api.github.com/repos/statamic/v2-hub/issues/930/labels{/name}","comments_url":"https://api.github.com/repos/statamic/v2-hub/issues/930/comments","events_url":"https://api.github.com/repos/statamic/v2-hub/issues/930/events","html_url":"https://github.com/statamic/v2-hub/issues/930","id":175545643,"number":930,"title":"Markdown field format breaking","user":{"login":"jeremydouglas","id":113216,"avatar_url":"https://avatars.githubusercontent.com/u/113216?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremydouglas","html_url":"https://github.com/jeremydouglas","followers_url":"https://api.github.com/users/jeremydouglas/followers","following_url":"https://api.github.com/users/jeremydouglas/following{/other_user}","gists_url":"https://api.github.com/users/jeremydouglas/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremydouglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremydouglas/subscriptions","organizations_url":"https://api.github.com/users/jeremydouglas/orgs","repos_url":"https://api.github.com/users/jeremydouglas/repos","events_url":"https://api.github.com/users/jeremydouglas/events{/privacy}","received_events_url":"https://api.github.com/users/jeremydouglas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-07T16:16:35Z","updated_at":"2016-09-07T16:16:35Z","closed_at":null,"body":"### Expected behaviour\r\nMarkdown field will save properly.\r\n\r\n### Actual behaviour\r\nMarkdown field is saved starting with a pipe character and tabbed indents for each line.\r\n\r\n### Steps to reproduce\r\n1.  Save content from Control Panel with Markdown field nested in a Replicator.\r\n2. Accidentally enter a few hard returns at the end of the textarea.\r\n2. View live page.\r\n2.  Markdown content gets thrown off by an added pipe character to the beginning and tab indenting to each line.\r\n\r\nHere's a screenshot of how it ends up:\r\n\r\n![screen shot 2016-09-07 at 11 33 32 am](https://cloud.githubusercontent.com/assets/113216/18319402/91d44bee-74f3-11e6-91c1-34a4a02b3243.png)\r\n\r\nAnd in the template:\r\n\r\n![screen shot 2016-09-07 at 12 14 15 pm](https://cloud.githubusercontent.com/assets/113216/18319652/a6d6becc-74f4-11e6-9d70-cc2806f0e31f.png)\r\n\r\nSeems to happen when there are hard returns at the end of a textarea. I'm not sure if there are other instances that will trigger this as well.\r\n\r\n### Server configuration\r\n**Operating system**: Ubuntu\r\n\r\n**Web server:**  Linode\r\n\r\n**PHP version:** 7\r\n\r\n**Statamic version:** 2.1.6\r\n\r\n**Updated from an older Statamic or fresh install:** Updated from V1, but this is a new Fieldset and Collection.\r\n\r\n### Logs\r\nFrom my server error log\r\n```\r\n[Wed Sep 07 15:32:22.884057 2016] [proxy_fcgi:error] [pid 22461:tid 140533619984128] (104)Connection reset by peer: [client 72.38.112.218:57574] AH01075: Error dispatching request to : (passing brigade to output filters), referer: http://wentworthlandscapes.com/blog/bridal-wreath-spirea\r\n[Wed Sep 07 15:32:22.910761 2016] [proxy_fcgi:error] [pid 22210:tid 140533678733056] (104)Connection reset by peer: [client 72.38.112.218:57576] AH01075: Error dispatching request to : (passing brigade to output filters), referer: http://wentworthlandscapes.com/blog/bridal-wreath-spirea\r\n[Wed Sep 07 15:32:23.266870 2016] [proxy_fcgi:error] [pid 22461:tid 140533578020608] (104)Connection reset by peer: [client 72.38.112.218:57594] AH01075: Error dispatching request to : (passing brigade to output filters), referer: http://wentworthlandscapes.com/blog/bridal-wreath-spirea\r\n\r\n```\r\n"}}
{"actor":{"display_login":"jeremydouglas"}}