This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
003bab7523
rust
/
tests
/
target
/
issue-3132.rs
16 lines
150 B
Rust
Raw
Normal View
History
Unescape
Escape
version-gate the formatting of commented strings
2019-01-16 16:06:28 -06:00
// rustfmt-version: Two
The method trim_left_preserve_layout didn't handle tabs properly. This is fixed by taking the method macros::indent_macro_snippet which essentially does the same: it indents a paragraph while preserving the layout.
2018-10-29 19:09:09 -05:00
fn
test
(
)
{
/*
a
*
/
let
x
=
42
;
/*
recognize strings inside comments in order to avoid indenting them Close #3270
2019-01-10 07:25:07 -06:00
aaa
"
line 1
line
2
line
3
"
*
/
The method trim_left_preserve_layout didn't handle tabs properly. This is fixed by taking the method macros::indent_macro_snippet which essentially does the same: it indents a paragraph while preserving the layout.
2018-10-29 19:09:09 -05:00
let
x
=
42
;
}
Reference in New Issue
Copy Permalink