Kill another case of a spurious blank line. Closes #809.
This commit is contained in:
parent
6e5af8996d
commit
e8bcca2829
2 changed files with 9 additions and 1 deletions
|
@ -473,7 +473,7 @@ fn print_item(s: &ps, item: &@ast::item) {
|
|||
} else {
|
||||
bopen(s);
|
||||
for v: ast::variant in variants {
|
||||
space(s.s);
|
||||
space_if_not_bol(s);
|
||||
maybe_print_comment(s, v.span.lo);
|
||||
word(s.s, v.node.name);
|
||||
if vec::len(v.node.args) > 0u {
|
||||
|
|
8
src/test/pretty/tag-blank-lines.rs
Normal file
8
src/test/pretty/tag-blank-lines.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
// pp-exact
|
||||
|
||||
tag foo {
|
||||
foo; // a foo.
|
||||
bar;
|
||||
}
|
||||
|
||||
fn main() { }
|
Loading…
Reference in a new issue