This commit is contained in:
Mark Thom
2019-06-16 01:25:42 -04:00
parent 39d5e6a2f9
commit b2fed73011

View File

@@ -819,9 +819,14 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter>
},
DoubleQuotes::Atom => {
let borrowed_str = s.borrow();
let mut atom = String::new();
for c in borrowed_str[s.cursor() ..].chars() {
atom += &char_to_string(c);
}
self.push_char('"');
self.append_str(&borrowed_str[s.cursor() ..]);
self.append_str(&atom);
self.push_char('"');
}
}