{"action":"created","issue":{"url":"https://api.github.com/repos/avh4/elm-format/issues/156","repository_url":"https://api.github.com/repos/avh4/elm-format","labels_url":"https://api.github.com/repos/avh4/elm-format/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/avh4/elm-format/issues/156/comments","events_url":"https://api.github.com/repos/avh4/elm-format/issues/156/events","html_url":"https://github.com/avh4/elm-format/issues/156","id":149258448,"number":156,"title":"Keep preformatted code blocks","user":{"login":"tcoopman","id":45546,"avatar_url":"https://avatars.githubusercontent.com/u/45546?v=3","gravatar_id":"","url":"https://api.github.com/users/tcoopman","html_url":"https://github.com/tcoopman","followers_url":"https://api.github.com/users/tcoopman/followers","following_url":"https://api.github.com/users/tcoopman/following{/other_user}","gists_url":"https://api.github.com/users/tcoopman/gists{/gist_id}","starred_url":"https://api.github.com/users/tcoopman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcoopman/subscriptions","organizations_url":"https://api.github.com/users/tcoopman/orgs","repos_url":"https://api.github.com/users/tcoopman/repos","events_url":"https://api.github.com/users/tcoopman/events{/privacy}","received_events_url":"https://api.github.com/users/tcoopman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/avh4/elm-format/labels/discussion","name":"discussion","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-04-18T20:13:14Z","updated_at":"2016-08-10T19:49:08Z","closed_at":null,"body":"I'm not really sure how to name this issue, so let me show it.\r\n\r\nelm-format will turn this:\r\n\r\n```elm\r\ndeck : List Card\r\ndeck = \r\n  [ (Spade, Manille), (Club, Manille), (Diamond, Manille), (Heart, Manille)\r\n  , (Spade, Ace),     (Club, Ace),     (Diamond, Ace),     (Heart, Ace)\r\n  , (Spade, King),    (Club, King),    (Diamond, King),    (Heart, King)\r\n  , (Spade, Queen),   (Club, Queen),   (Diamond, Queen),   (Heart, Queen)\r\n  , (Spade, Jack),    (Club, Jack),    (Diamond, Jack),    (Heart, Jack)\r\n  , (Spade, Nine),    (Club, Nine),    (Diamond, Nine),    (Heart, Nine)\r\n  , (Spade, Eight),   (Club, Eight),   (Diamond, Eight),   (Heart, Eight)\r\n  , (Spade, Seven),   (Club, Seven),   (Diamond, Seven),   (Heart, Seven)\r\n  ]\r\n```\r\n\r\ninto this:\r\n\r\n```elm\r\ndeck : List Card\r\ndeck =\r\n  [ ( Spade, Manille )\r\n  , ( Club, Manille )\r\n  , ( Diamond, Manille )\r\n  , ( Heart, Manille )\r\n  , ( Spade, Ace )\r\n  , ( Club, Ace )\r\n  , ( Diamond, Ace )\r\n  , ( Heart, Ace )\r\n  , ( Spade, King )\r\n  , ( Club, King )\r\n  , ( Diamond, King )\r\n  , ( Heart, King )\r\n  , ( Spade, Queen )\r\n  , ( Club, Queen )\r\n  , ( Diamond, Queen )\r\n  , ( Heart, Queen )\r\n  , ( Spade, Jack )\r\n  , ( Club, Jack )\r\n  , ( Diamond, Jack )\r\n  , ( Heart, Jack )\r\n  , ( Spade, Nine )\r\n  , ( Club, Nine )\r\n  , ( Diamond, Nine )\r\n  , ( Heart, Nine )\r\n  , ( Spade, Eight )\r\n  , ( Club, Eight )\r\n  , ( Diamond, Eight )\r\n  , ( Heart, Eight )\r\n  , ( Spade, Seven )\r\n  , ( Club, Seven )\r\n  , ( Diamond, Seven )\r\n  , ( Heart, Seven )\r\n  ]\r\n```\r\n\r\nIt would be great if we could instruct elm-format to not reformat this code. I do not really have a good idea how to do it (maybe surround it with some elm-format ignore comments), but maybe someone else has an idea?\r\n"},"comment":{"url":"https://api.github.com/repos/avh4/elm-format/issues/comments/238982741","html_url":"https://github.com/avh4/elm-format/issues/156#issuecomment-238982741","issue_url":"https://api.github.com/repos/avh4/elm-format/issues/156","id":238982741,"user":{"login":"tcoopman","id":45546,"avatar_url":"https://avatars.githubusercontent.com/u/45546?v=3","gravatar_id":"","url":"https://api.github.com/users/tcoopman","html_url":"https://github.com/tcoopman","followers_url":"https://api.github.com/users/tcoopman/followers","following_url":"https://api.github.com/users/tcoopman/following{/other_user}","gists_url":"https://api.github.com/users/tcoopman/gists{/gist_id}","starred_url":"https://api.github.com/users/tcoopman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcoopman/subscriptions","organizations_url":"https://api.github.com/users/tcoopman/orgs","repos_url":"https://api.github.com/users/tcoopman/repos","events_url":"https://api.github.com/users/tcoopman/events{/privacy}","received_events_url":"https://api.github.com/users/tcoopman/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T19:49:08Z","updated_at":"2016-08-10T19:49:08Z","body":"I just happen to stumble on an other example where I would like to disable the formatting for one section:\r\n\r\nthis is after commenting\r\n```elm\r\n        fixed =\r\n            [ (rotateN 1 elbow)\r\n            , (rotateN 2 tee)\r\n            , (rotateN 2 tee)\r\n            , (rotateN 2 elbow)\r\n            , (rotateN 1 tee)\r\n            , (rotateN 1 tee)\r\n            , (rotateN 2 tee)\r\n            , (rotateN 3 tee)\r\n            , (rotateN 1 tee)\r\n            , (rotateN 0 tee)\r\n            , (rotateN 3 tee)\r\n            , (rotateN 3 tee)\r\n            , (rotateN 0 elbow)\r\n            , (rotateN 0 tee)\r\n            , (rotateN 0 tee)\r\n            , (rotateN 3 elbow)\r\n            ]\r\n```\r\n\r\nThis is how I would like it:\r\n\r\n```elm\r\n        fixed =\r\n            [ (rotateN 1 elbow), (rotateN 2 tee), (rotateN 2 tee), (rotateN 2 elbow)\r\n            , (rotateN 1 tee),   (rotateN 1 tee), (rotateN 2 tee), (rotateN 3 tee)\r\n            , (rotateN 1 tee),   (rotateN 0 tee), (rotateN 3 tee), (rotateN 3 tee)\r\n            , (rotateN 0 elbow), (rotateN 0 tee), (rotateN 0 tee), (rotateN 3 elbow)\r\n            ]\r\n```\r\n\r\nThis is from a board game, which has a 4 x 4 layout."}}
{"actor":{"display_login":"tcoopman"}}