Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabs not expanded in macros #545

Closed
alexcrichton opened this issue Oct 28, 2015 · 2 comments
Closed

Tabs not expanded in macros #545

alexcrichton opened this issue Oct 28, 2015 · 2 comments

Comments

@alexcrichton
Copy link
Member

Given this source:

foo! {
    test
}
$ xxd foo.rs        
0000000: 666f 6f21 207b 0a09 7465 7374 0a7d 0a    foo! {..test.}.
$ rustfmt --write-mode overwrite foo.rs

$ xxd foo.rs
0000000: 666f 6f21 207b 0a09 7465 7374 0a7d 0a    foo! {..test.}.

Similar to https://github.com/nrc/rustfmt/issues/544, the tab inside the macro, "09", remained before and after the format.

@nrc
Copy link
Member

nrc commented Jun 20, 2017

Closing because covered by #8

@nrc nrc closed this as completed Jun 20, 2017
@RReverser
Copy link
Contributor

Are these strictly relevant? I'd expect indentation to be handled anywhere as it doesn't need to parse the contents of the macro (or any code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants