{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka/issues/25006","repository_url":"https://api.github.com/repos/akka/akka","labels_url":"https://api.github.com/repos/akka/akka/issues/25006/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/25006/comments","events_url":"https://api.github.com/repos/akka/akka/issues/25006/events","html_url":"https://github.com/akka/akka/pull/25006","id":318651445,"number":25006,"title":"Fix def getDetails in StreamOperatorsIndexGenerator for paradox on Windows","user":{"login":"richardimaoka","id":7414320,"avatar_url":"https://avatars1.githubusercontent.com/u/7414320?v=4","gravatar_id":"","url":"https://api.github.com/users/richardimaoka","html_url":"https://github.com/richardimaoka","followers_url":"https://api.github.com/users/richardimaoka/followers","following_url":"https://api.github.com/users/richardimaoka/following{/other_user}","gists_url":"https://api.github.com/users/richardimaoka/gists{/gist_id}","starred_url":"https://api.github.com/users/richardimaoka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardimaoka/subscriptions","organizations_url":"https://api.github.com/users/richardimaoka/orgs","repos_url":"https://api.github.com/users/richardimaoka/repos","events_url":"https://api.github.com/users/richardimaoka/events{/privacy}","received_events_url":"https://api.github.com/users/richardimaoka/received_events","type":"User","site_admin":false},"labels":[{"id":37797347,"url":"https://api.github.com/repos/akka/akka/labels/tested","name":"tested","color":"d7e102","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-28T16:47:57Z","updated_at":"2018-04-29T04:05:51Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/akka/akka/pulls/25006","html_url":"https://github.com/akka/akka/pull/25006","diff_url":"https://github.com/akka/akka/pull/25006.diff","patch_url":"https://github.com/akka/akka/pull/25006.patch"},"body":"Closes #25004\r\n\r\nhttps://github.com/akka/akka/blob/054b70c41b58d911829057872eac08f92b6db66f/project/StreamOperatorsIndexGenerator.scala#L199\r\n\r\nAs in the issue, the above line fails with this exception:\r\n\r\n```\r\nombine several sources, using a given strategy such as merge or concat, into one source.\r\n[error] java.lang.IllegalArgumentException: requirement failed: category link in C:\\Users\\*****\\akka\\akka\\akka-docs\\src\\main\\paradox\\stream\\operators\\Source\\combine.md, saw ombine several sources, using a given strategy such as merge or concat, into one source.\r\n```\r\n\r\nYou see it \"ombine\" not even \"Combine\", and it is supposed to be `description` not `categoryLink`. This happened because of the end-line character difference as below.\r\n\r\nGiven the content of [Source/combine.md](https://github.com/akka/akka/blob/054b70c41b58d911829057872eac08f92b6db66f/akka-docs/src/main/paradox/stream/operators/Source/combine.md): \r\n\r\n```\r\n# combine\r\n\r\nCombine several sinks into one using a user specified strategy\r\n\r\n@ref[Sink stages](../index.md#sink-stages)\r\n\r\n... //omitted further text here\r\n```\r\n\r\nOn Linux/Mac, `.dropWhile(_ != '\\n').drop(2)`  or `.takeWhile(_ != '\\n').drop(2)` will drop `\\n\\n` which is end-line and the following empty line, and that just works fine. \r\n\r\nhttps://github.com/akka/akka/blob/054b70c41b58d911829057872eac08f92b6db66f/project/StreamOperatorsIndexGenerator.scala#L194\r\n\r\nHowever on Windows, it drops only a single end-line because it is `\\r\\n`.\r\n\r\nSo I found a technique explained in https://www.mkyong.com/java/java-how-to-split-string-by-new-line/ and `split(\"\\\\r?\\\\n\")` worked fine on my Windows and Mac as far as I tested. "},"comment":{"url":"https://api.github.com/repos/akka/akka/issues/comments/385224094","html_url":"https://github.com/akka/akka/pull/25006#issuecomment-385224094","issue_url":"https://api.github.com/repos/akka/akka/issues/25006","id":385224094,"user":{"login":"akka-ci","id":2511948,"avatar_url":"https://avatars3.githubusercontent.com/u/2511948?v=4","gravatar_id":"","url":"https://api.github.com/users/akka-ci","html_url":"https://github.com/akka-ci","followers_url":"https://api.github.com/users/akka-ci/followers","following_url":"https://api.github.com/users/akka-ci/following{/other_user}","gists_url":"https://api.github.com/users/akka-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/akka-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka-ci/subscriptions","organizations_url":"https://api.github.com/users/akka-ci/orgs","repos_url":"https://api.github.com/users/akka-ci/repos","events_url":"https://api.github.com/users/akka-ci/events{/privacy}","received_events_url":"https://api.github.com/users/akka-ci/received_events","type":"User","site_admin":false},"created_at":"2018-04-29T04:05:51Z","updated_at":"2018-04-29T04:05:51Z","author_association":"COLLABORATOR","body":"Test PASSed.\n"}}
{"actor":{"display_login":"akka-ci"}}