print chars somewhat appropriately.

This commit is contained in:
Mark Thom
2018-05-28 20:19:52 -06:00
parent 07ec2d34c8
commit a13b94622b
5 changed files with 28 additions and 15 deletions

View File

@@ -36,6 +36,10 @@ impl HCValueOutputter for TestOutputter {
self.focus += focus;
}
fn push_char(&mut self, c: char) {
self.focus.push(c);
}
fn begin_new_var(&mut self) {
if !self.focus.is_empty() {
let mut focus = String::new();