check atom == ',' in ambiguity_check mirroring logic in print_op_addendum (#2000)

This commit is contained in:
Mark
2023-09-05 14:56:26 -06:00
parent fa11d6bdd4
commit a0b5a24853

View File

@@ -580,7 +580,7 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> {
fn ambiguity_check(&self, atom: &str) -> bool { fn ambiguity_check(&self, atom: &str) -> bool {
let tail = &self.outputter.as_str()[self.last_item_idx..]; let tail = &self.outputter.as_str()[self.last_item_idx..];
if !self.quoted || non_quoted_token(atom.chars()) { if atom == "," || !self.quoted || non_quoted_token(atom.chars()) {
requires_space(tail, atom) requires_space(tail, atom)
} else { } else {
requires_space(tail, "'") requires_space(tail, "'")