{"action":"created","issue":{"url":"https://api.github.com/repos/imatix/gsl/issues/93","labels_url":"https://api.github.com/repos/imatix/gsl/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/imatix/gsl/issues/93/comments","events_url":"https://api.github.com/repos/imatix/gsl/issues/93/events","html_url":"https://github.com/imatix/gsl/issues/93","id":71987464,"number":93,"title":"Justification question","user":{"login":"saleyn","id":272543,"avatar_url":"https://avatars.githubusercontent.com/u/272543?v=3","gravatar_id":"","url":"https://api.github.com/users/saleyn","html_url":"https://github.com/saleyn","followers_url":"https://api.github.com/users/saleyn/followers","following_url":"https://api.github.com/users/saleyn/following{/other_user}","gists_url":"https://api.github.com/users/saleyn/gists{/gist_id}","starred_url":"https://api.github.com/users/saleyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saleyn/subscriptions","organizations_url":"https://api.github.com/users/saleyn/orgs","repos_url":"https://api.github.com/users/saleyn/repos","events_url":"https://api.github.com/users/saleyn/events{/privacy}","received_events_url":"https://api.github.com/users/saleyn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-29T20:53:57Z","updated_at":"2015-04-29T23:34:02Z","closed_at":null,"body":"Suppose I have an XML block with enumerated values of different lengths:\r\n```\r\n<enum name=\"fruit\">\r\n<value code=\"1\" val=\"orange\"/>\r\n<value code=\"200\" val=\"kiwi\"/>\r\n</enum>\r\n```\r\nAnd I want to generate aligned code:\r\n```\r\nenum class fruit {\r\n    orange =   1,\r\n    kiwi   = 200\r\n};\r\n```\r\nIs there a way to enforce this proper alignment in the generated code without manually having to pad the values?"},"comment":{"url":"https://api.github.com/repos/imatix/gsl/issues/comments/97614165","html_url":"https://github.com/imatix/gsl/issues/93#issuecomment-97614165","issue_url":"https://api.github.com/repos/imatix/gsl/issues/93","id":97614165,"user":{"login":"saleyn","id":272543,"avatar_url":"https://avatars.githubusercontent.com/u/272543?v=3","gravatar_id":"","url":"https://api.github.com/users/saleyn","html_url":"https://github.com/saleyn","followers_url":"https://api.github.com/users/saleyn/followers","following_url":"https://api.github.com/users/saleyn/following{/other_user}","gists_url":"https://api.github.com/users/saleyn/gists{/gist_id}","starred_url":"https://api.github.com/users/saleyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saleyn/subscriptions","organizations_url":"https://api.github.com/users/saleyn/orgs","repos_url":"https://api.github.com/users/saleyn/repos","events_url":"https://api.github.com/users/saleyn/events{/privacy}","received_events_url":"https://api.github.com/users/saleyn/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T23:34:02Z","updated_at":"2015-04-29T23:34:02Z","body":"I am having a little hard time understanding the example under \"Shuffle\" in the README.md (also I can't find the gsldoc.txt file in this repository, did you mean the README.md file?).  In order to produce the output above I put together this code:\r\n```\r\n.for enum\r\n    enum class $(name) {\r\n.   for value\r\n        $(.val)  = $(.code)$(!last() ?? ',')\r\n.   endfor\r\n    };\r\n.endfor\r\n```\r\nI get:\r\n```\r\n    enum class fruit {\r\n        orange   = 1,\r\n        kiwi     = 200\r\n    };\r\n```\r\nHowever there are two issues here:\r\n1. There are two spaces after the $(.val), since I want to use the \"Shuffle\", and I only want to have one space in the output of the longest entry \"orange\".\r\n2. How do I right-justify the $(.code)?"}}