{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/18029","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/18029/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/18029/comments","events_url":"https://api.github.com/repos/atom/atom/issues/18029/events","html_url":"https://github.com/atom/atom/issues/18029","id":359218213,"node_id":"MDU6SXNzdWUzNTkyMTgyMTM=","number":18029,"title":"`opt+cmd+q` not latex-sensitive","user":{"login":"daviwil","id":79405,"node_id":"MDQ6VXNlcjc5NDA1","avatar_url":"https://avatars3.githubusercontent.com/u/79405?v=4","gravatar_id":"","url":"https://api.github.com/users/daviwil","html_url":"https://github.com/daviwil","followers_url":"https://api.github.com/users/daviwil/followers","following_url":"https://api.github.com/users/daviwil/following{/other_user}","gists_url":"https://api.github.com/users/daviwil/gists{/gist_id}","starred_url":"https://api.github.com/users/daviwil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviwil/subscriptions","organizations_url":"https://api.github.com/users/daviwil/orgs","repos_url":"https://api.github.com/users/daviwil/repos","events_url":"https://api.github.com/users/daviwil/events{/privacy}","received_events_url":"https://api.github.com/users/daviwil/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-11T20:49:31Z","updated_at":"2018-09-11T20:49:34Z","closed_at":null,"author_association":"MEMBER","body":"_From @rothos on November 7, 2014 17:45_\n\nI’m new to Atom and am not sure if this issue belongs here, so let me know if it belongs somewhere else, e.g. in the issues for the package [area/language-latex](http://github.com/area/language-latex), which handles LaTeX language compatibility.\n\nThe issue #12 points out that Autoflow does not respect LaTeX comments, but really the problem is more broad. Here are a few misbehaviors of Autoflow in LaTeX. (Here I am defining the “correct” behavior as that of Sublime Text’s [LaTeXTools](https://github.com/SublimeText/LaTeXTools) package, which is what I’m used to.)\n1. **Autoflow does not respect that lines beginning with a LaTeX command usually should not be reformatted.**\n   \n   Input (the pipe represents where my cursor when I hit `alt+cmd+q`; no text is highlighted):\n   \n   ```\n   \\section{Introduction}\n   |This is the\n   introduction paragraph.\n   ```\n   \n   Expected output:\n   \n   ```\n   \\section{Introduction}\n   This is the introduction paragraph.\n   ```\n   \n   Actual output:\n   \n   ```\n   \\section{Introduction} This is the introduction paragraph.\n   ```\n   \n   I think the rule that Sublime’s LaTeXTools uses is that if a line begins with `\\` it is not reformatted.\n2. **Autoflow does not fully respect LaTeX comments (I).** This is pointed out in #12. Although comments are not treated as normal text like the `\\section` command is in the first example, Autoflow does not correctly insert a symbol `%` upon reformatting.\n   \n   Input (the pipe represents where my cursor when I hit `alt+cmd+q`; no text is highlighted):\n   \n   ```\n   \\section{Introduction}\n   |% In this section the subject is introduced. Lorem ipsum dolor sit amet, adipiscing elit.\n   ```\n   \n   Expected output:\n   \n   ```\n   \\section{Introduction}\n   % In this section the subject is introduced. Lorem ipsum dolor sit amet,\n   % adipiscing elit.\n   ```\n   \n   Actual output:\n   \n   ```\n   \\section{Introduction}\n   % In this section the subject is introduced. Lorem ipsum dolor sit amet,\n   adipiscing elit.\n   ```\n3. **Autoflow does not fully respect LaTeX comments (II).** Similarly to above, Autoflow does not remove a `%` when it merges two comment lines.\n   \n   Input (the pipe represents where my cursor when I hit `alt+cmd+q`; no text is highlighted):\n   \n   ```\n   \\section{Introduction}\n   |% In this section\n   % the subject is introduced.\n   ```\n   \n   Expected output:\n   \n   ```\n   \\section{Introduction}\n   % In this section the subject is introduced.\n   ```\n   \n   Actual output:\n   \n   ```\n   \\section{Introduction}\n   % In this section % the subject is introduced.\n   ```\n\n\n_Copied from original issue: atom/autoflow#18_"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/420420565","html_url":"https://github.com/atom/atom/issues/18029#issuecomment-420420565","issue_url":"https://api.github.com/repos/atom/atom/issues/18029","id":420420565,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDQyMDU2NQ==","user":{"login":"daviwil","id":79405,"node_id":"MDQ6VXNlcjc5NDA1","avatar_url":"https://avatars3.githubusercontent.com/u/79405?v=4","gravatar_id":"","url":"https://api.github.com/users/daviwil","html_url":"https://github.com/daviwil","followers_url":"https://api.github.com/users/daviwil/followers","following_url":"https://api.github.com/users/daviwil/following{/other_user}","gists_url":"https://api.github.com/users/daviwil/gists{/gist_id}","starred_url":"https://api.github.com/users/daviwil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviwil/subscriptions","organizations_url":"https://api.github.com/users/daviwil/orgs","repos_url":"https://api.github.com/users/daviwil/repos","events_url":"https://api.github.com/users/daviwil/events{/privacy}","received_events_url":"https://api.github.com/users/daviwil/received_events","type":"User","site_admin":true},"created_at":"2018-09-11T20:49:34Z","updated_at":"2018-09-11T20:49:34Z","author_association":"MEMBER","body":"_From @JamesGuthrie on September 18, 2015 8:57_\n\nA follow-up: it looks as though the root my problem is that the document I was editing uses CRLF line endings. While autoflow \"correctly\" reflowed the text, it only removes \\n, not \\r from the line endings. The result is that the reflowed text is broken on the new line breaks that autoflow adds, and the \\r component of the linebreak which was not removed from the original line breaks.\n"}}
{"actor":{"display_login":"daviwil"}}