{"action":"closed","issue":{"url":"https://api.github.com/repos/mattermost/platform/issues/3939","repository_url":"https://api.github.com/repos/mattermost/platform","labels_url":"https://api.github.com/repos/mattermost/platform/issues/3939/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/platform/issues/3939/comments","events_url":"https://api.github.com/repos/mattermost/platform/issues/3939/events","html_url":"https://github.com/mattermost/platform/issues/3939","id":174782557,"number":3939,"title":"Edit post interface eats leading spaces","user":{"login":"NilSet","id":4490501,"avatar_url":"https://avatars.githubusercontent.com/u/4490501?v=3","gravatar_id":"","url":"https://api.github.com/users/NilSet","html_url":"https://github.com/NilSet","followers_url":"https://api.github.com/users/NilSet/followers","following_url":"https://api.github.com/users/NilSet/following{/other_user}","gists_url":"https://api.github.com/users/NilSet/gists{/gist_id}","starred_url":"https://api.github.com/users/NilSet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NilSet/subscriptions","organizations_url":"https://api.github.com/users/NilSet/orgs","repos_url":"https://api.github.com/users/NilSet/repos","events_url":"https://api.github.com/users/NilSet/events{/privacy}","received_events_url":"https://api.github.com/users/NilSet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-02T15:10:54Z","updated_at":"2016-09-14T18:17:13Z","closed_at":"2016-09-14T18:17:13Z","body":"When editing a post, any leading spaces will be removed. This is a problem when trying to escape markdown.\r\n\r\n#### Steps to reproduce\r\nversion 3.3.0\r\n1\\. Post the following\r\n````\r\n    ```latex\r\n    test\r\n    ```\r\n````\r\n2\\. Edit the post to the following\r\n````\r\n    ```latex\r\n    fail\r\n    ```\r\n````\r\n\r\n#### Expected behavior\r\nBoth versions display as code blocks showing the raw markdown due to the indentation\r\n\r\n#### Observed behavior\r\nAfter editing, it renders as a latex expression because the initial 4 spaces are removed.\r\n\r\n#### Possible fixes\r\nDon't trim whitespace on edits when you wouldn't trim whitespace on initial posting.\r\n"}}
{"actor":{"display_login":"lfbrock"}}