{"action":"created","issue":{"url":"https://api.github.com/repos/haml/haml/issues/825","labels_url":"https://api.github.com/repos/haml/haml/issues/825/labels{/name}","comments_url":"https://api.github.com/repos/haml/haml/issues/825/comments","events_url":"https://api.github.com/repos/haml/haml/issues/825/events","html_url":"https://github.com/haml/haml/issues/825","id":53755873,"number":825,"title":"collapse_whitespace","user":{"login":"Exoth","id":238863,"avatar_url":"https://avatars.githubusercontent.com/u/238863?v=3","gravatar_id":"","url":"https://api.github.com/users/Exoth","html_url":"https://github.com/Exoth","followers_url":"https://api.github.com/users/Exoth/followers","following_url":"https://api.github.com/users/Exoth/following{/other_user}","gists_url":"https://api.github.com/users/Exoth/gists{/gist_id}","starred_url":"https://api.github.com/users/Exoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exoth/subscriptions","organizations_url":"https://api.github.com/users/Exoth/orgs","repos_url":"https://api.github.com/users/Exoth/repos","events_url":"https://api.github.com/users/Exoth/events{/privacy}","received_events_url":"https://api.github.com/users/Exoth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-08T14:28:35Z","updated_at":"2015-01-08T14:59:20Z","closed_at":null,"body":"The `remove_whitespace` option removes absolutely all whitespaces, which results in different page rendering. It would be nice to have an option to replace all double, triple etc. whitespaces by a single whitespace. So enabling this option would not change rendering but would reduce page size."},"comment":{"url":"https://api.github.com/repos/haml/haml/issues/comments/69190220","html_url":"https://github.com/haml/haml/issues/825#issuecomment-69190220","issue_url":"https://api.github.com/repos/haml/haml/issues/825","id":69190220,"user":{"login":"norman","id":5042,"avatar_url":"https://avatars.githubusercontent.com/u/5042?v=3","gravatar_id":"","url":"https://api.github.com/users/norman","html_url":"https://github.com/norman","followers_url":"https://api.github.com/users/norman/followers","following_url":"https://api.github.com/users/norman/following{/other_user}","gists_url":"https://api.github.com/users/norman/gists{/gist_id}","starred_url":"https://api.github.com/users/norman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norman/subscriptions","organizations_url":"https://api.github.com/users/norman/orgs","repos_url":"https://api.github.com/users/norman/repos","events_url":"https://api.github.com/users/norman/events{/privacy}","received_events_url":"https://api.github.com/users/norman/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T14:59:20Z","updated_at":"2015-01-08T14:59:20Z","body":"Great! One thing to keep in mind, we don't want to add too many more configuration options to Haml. I would suggest making a \"whitespace\" option that takes arguments like \"squeeze\" or \"strip\" rather than having two options, \"remove_whitespace\" and \"collapse_whitespace\". I suggest \"squeeze\" and \"strip\" rather than \"collapse\" and \"remove\" since those match up more closely how Ruby's `String#squeeze\" and `String#strip`.\r\n\r\nIf you implement the feature, we can then help you incorporate it into Haml in a way that deprecates the current options and enables the new ones in a way that works with our release planning."}}