diff options
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 533487ae1c5..430d13b87fc 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -752,7 +752,8 @@ pub trait PrintState<'a> { } try!(self.maybe_print_comment(attr.span.lo)); if attr.node.is_sugared_doc { - word(self.writer(), &attr.value_str().unwrap()) + try!(word(self.writer(), &attr.value_str().unwrap())); + hardbreak(self.writer()) } else { match attr.node.style { ast::AttrStyle::Inner => try!(word(self.writer(), "#