Restore a visual alignment mode for block comments

This commit is contained in:
David Tolnay 2022-01-21 01:26:00 -08:00
parent 402f322940
commit 125c729e05
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
3 changed files with 33 additions and 7 deletions

View file

@ -315,7 +315,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere
self.word(cmnt.lines[0].clone());
self.hardbreak()
} else {
self.ibox(0);
self.visual_align();
for line in &cmnt.lines {
if !line.is_empty() {
self.word(line.clone());