correct printing of lists when double_quotes is set to atom

This commit is contained in:
Mark Thom
2018-08-30 00:04:19 -06:00
parent 92927bbcef
commit 872b153b08
4 changed files with 14 additions and 2 deletions

View File

@@ -339,8 +339,10 @@ impl<'a, Formatter: HCValueFormatter, Outputter: HCValueOutputter>
}
// self.expand_char_list(s);
} else { // for now, == DoubleQuotes::Atom
let borrowed_str = s.borrow();
self.outputter.append("\"");
self.outputter.append(s.borrow().as_str());
self.outputter.append(&borrowed_str[s.cursor() ..]);
self.outputter.append("\"");
},
Constant::Usize(i) =>