{"action":"opened","issue":{"url":"https://api.github.com/repos/naemon/naemon-core/issues/153","repository_url":"https://api.github.com/repos/naemon/naemon-core","labels_url":"https://api.github.com/repos/naemon/naemon-core/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/naemon/naemon-core/issues/153/comments","events_url":"https://api.github.com/repos/naemon/naemon-core/issues/153/events","html_url":"https://github.com/naemon/naemon-core/issues/153","id":185766110,"number":153,"title":"inconsistant newline escaping","user":{"login":"sni","id":150844,"avatar_url":"https://avatars.githubusercontent.com/u/150844?v=3","gravatar_id":"","url":"https://api.github.com/users/sni","html_url":"https://github.com/sni","followers_url":"https://api.github.com/users/sni/followers","following_url":"https://api.github.com/users/sni/following{/other_user}","gists_url":"https://api.github.com/users/sni/gists{/gist_id}","starred_url":"https://api.github.com/users/sni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sni/subscriptions","organizations_url":"https://api.github.com/users/sni/orgs","repos_url":"https://api.github.com/users/sni/repos","events_url":"https://api.github.com/users/sni/events{/privacy}","received_events_url":"https://api.github.com/users/sni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-27T20:02:09Z","updated_at":"2016-10-27T20:02:09Z","closed_at":null,"body":"Assuming the following test configuration:\r\n\r\n```\r\ndefine command {\r\n  command_name                   dummy-printf\r\n  command_line                   printf $ARG1$\r\n}\r\ndefine service {\r\n  service_description            test newlines service\r\n  host_name                      testhost\r\n  use                            generic-service\r\n  check_command                  dummy-printf!'$SERVICEDESC$\\n$_SERVICETEST$\\n$LONGSERVICEOUTPUT$\\n' | head -n 20\r\n  _TEST                          text\\nwith\\nnewlines\\n\r\n}\r\n```\r\n\r\nI would assume a growing repeated list of the custom variable, but instead the newlines are removed completly from the longservice output macro.\r\n\r\nThis is how it actually looks:\r\n\r\n```\r\ntest with newlines\r\ntext\r\nwith\r\nnewlines\r\n\r\ntextwithnewlinestextwithnewlinestextwithnewlinest...\r\n```\r\n\r\nThis is what i would expect:\r\n\r\n```\r\ntest with newlines\r\ntext\r\nwith\r\nnewlines\r\ntest with newlines\r\ntext\r\nwith\r\nnewlines\r\ntest with newlines\r\ntext\r\nwith\r\nnewlines\r\n```"}}
{"actor":{"display_login":"sni"}}