{"action":"created","issue":{"url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/issues/1805","repository_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit","labels_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/issues/1805/labels{/name}","comments_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/issues/1805/comments","events_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/issues/1805/events","html_url":"https://github.com/SubtitleEdit/subtitleedit/issues/1805","id":161100192,"number":1805,"title":"[BUG] \"Replace with\" field treats regex `\\n` as environment newline","user":{"login":"aaaxx","id":6186480,"avatar_url":"https://avatars.githubusercontent.com/u/6186480?v=3","gravatar_id":"","url":"https://api.github.com/users/aaaxx","html_url":"https://github.com/aaaxx","followers_url":"https://api.github.com/users/aaaxx/followers","following_url":"https://api.github.com/users/aaaxx/following{/other_user}","gists_url":"https://api.github.com/users/aaaxx/gists{/gist_id}","starred_url":"https://api.github.com/users/aaaxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaaxx/subscriptions","organizations_url":"https://api.github.com/users/aaaxx/orgs","repos_url":"https://api.github.com/users/aaaxx/repos","events_url":"https://api.github.com/users/aaaxx/events{/privacy}","received_events_url":"https://api.github.com/users/aaaxx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-20T00:35:57Z","updated_at":"2016-06-20T11:00:14Z","closed_at":null,"body":"It outputs `\\r` literally and `\\n` as `\\r\\n` (CRLF), at least on Windows.\r\n\r\nThe \"Find what\" field doesn't seem to have that problem. That is, it matches *only* CR when looking for `\\r` and it will replace *only* CR if you try it, leaving LF in the source file."},"comment":{"url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/issues/comments/227112257","html_url":"https://github.com/SubtitleEdit/subtitleedit/issues/1805#issuecomment-227112257","issue_url":"https://api.github.com/repos/SubtitleEdit/subtitleedit/issues/1805","id":227112257,"user":{"login":"xylographe","id":8535293,"avatar_url":"https://avatars.githubusercontent.com/u/8535293?v=3","gravatar_id":"","url":"https://api.github.com/users/xylographe","html_url":"https://github.com/xylographe","followers_url":"https://api.github.com/users/xylographe/followers","following_url":"https://api.github.com/users/xylographe/following{/other_user}","gists_url":"https://api.github.com/users/xylographe/gists{/gist_id}","starred_url":"https://api.github.com/users/xylographe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xylographe/subscriptions","organizations_url":"https://api.github.com/users/xylographe/orgs","repos_url":"https://api.github.com/users/xylographe/repos","events_url":"https://api.github.com/users/xylographe/events{/privacy}","received_events_url":"https://api.github.com/users/xylographe/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T11:00:14Z","updated_at":"2016-06-20T11:00:14Z","body":"Well, SE replaces `\\n` in the replacement pattern with a literal newline (`Environment.NewLine`), and passes the resulting replacement pattern to the .Net regex implementation, which takes care of the `$` substitution elements (if any).\r\n\r\nOther character escapes, like `\\a`, `\\t` or `\\v`, do not appear to be very useful in a *subtitle* text?\r\nIn most subtitle formats control characters will be either harmful or prohibited (XML 1.0, for example, prohibits C0 controls, except for U+0009, U+000A, and U+000D).\r\n"}}
{"actor":{"display_login":"xylographe"}}