{"action":"opened","issue":{"url":"https://api.github.com/repos/googlesamples/android-text/issues/4","repository_url":"https://api.github.com/repos/googlesamples/android-text","labels_url":"https://api.github.com/repos/googlesamples/android-text/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/googlesamples/android-text/issues/4/comments","events_url":"https://api.github.com/repos/googlesamples/android-text/issues/4/events","html_url":"https://github.com/googlesamples/android-text/issues/4","id":300892286,"number":4,"title":"Line separator can be two characters on windows","user":{"login":"jimandreas","id":15666465,"avatar_url":"https://avatars1.githubusercontent.com/u/15666465?v=4","gravatar_id":"","url":"https://api.github.com/users/jimandreas","html_url":"https://github.com/jimandreas","followers_url":"https://api.github.com/users/jimandreas/followers","following_url":"https://api.github.com/users/jimandreas/following{/other_user}","gists_url":"https://api.github.com/users/jimandreas/gists{/gist_id}","starred_url":"https://api.github.com/users/jimandreas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimandreas/subscriptions","organizations_url":"https://api.github.com/users/jimandreas/orgs","repos_url":"https://api.github.com/users/jimandreas/repos","events_url":"https://api.github.com/users/jimandreas/events{/privacy}","received_events_url":"https://api.github.com/users/jimandreas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-28T05:01:27Z","updated_at":"2018-02-28T05:01:27Z","closed_at":null,"author_association":"NONE","body":"Some tests fail in the junit tests as there is an assumption that the line separator for the system is one character.  While this is true for Android devices, junit tests run on the host system.  On windows the separator is two characters long.   This suggests that the line separator needs to be a parameter:\r\n\r\n    -            endOfParagraph++;\r\n    +            endOfParagraph += LINE_SEPARATOR.length();\r\n\r\nList of line separators:\r\nhttps://stackoverflow.com/questions/426397/do-line-endings-differ-between-windows-and-linux"}}
{"actor":{"display_login":"jimandreas"}}