We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e186090 commit 0d45ef1Copy full SHA for 0d45ef1
librubyfmt/src/render_targets.rs
@@ -587,7 +587,7 @@ impl<'src> ConditionalLayoutEntry<'src> {
587
};
588
tokens
589
.iter()
590
- .rposition(|v| v.is_newline() || v.is_comment())
+ .rposition(|v| v.is_newline() || v.is_indent())
591
.map(|x| {
592
let token = &tokens[x];
593
if matches!(token, AbstractLineToken::CollapsingNewLine(_))
0 commit comments