stop write_canonical from printing numbervars.
This commit is contained in:
@@ -247,8 +247,8 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter>
|
|||||||
state_stack: vec![],
|
state_stack: vec![],
|
||||||
heap_locs: ReverseHeapVarDict::new(),
|
heap_locs: ReverseHeapVarDict::new(),
|
||||||
printed_vars: HashSet::new(),
|
printed_vars: HashSet::new(),
|
||||||
numbervars: true,
|
numbervars: false,
|
||||||
quoted: true,
|
quoted: false,
|
||||||
ignore_ops: false }
|
ignore_ops: false }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -377,13 +377,17 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter>
|
|||||||
s => if fixity.is_some() || !self.quoted || non_quoted_token(s.chars()) {
|
s => if fixity.is_some() || !self.quoted || non_quoted_token(s.chars()) {
|
||||||
self.outputter.append(atom.as_str())
|
self.outputter.append(atom.as_str())
|
||||||
} else {
|
} else {
|
||||||
self.outputter.push_char('\'');
|
if self.quoted {
|
||||||
|
self.outputter.push_char('\'');
|
||||||
|
}
|
||||||
|
|
||||||
for c in atom.as_str().chars() {
|
for c in atom.as_str().chars() {
|
||||||
self.print_char(c);
|
self.print_char(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.outputter.push_char('\'');
|
if self.quoted {
|
||||||
|
self.outputter.push_char('\'');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user