Skip to content

Commit 3f599c9

Browse files
committed
fix: use fixed token print value in print fallback arm
1 parent 4a89859 commit 3f599c9

File tree

1 file changed

+5
-1
lines changed
  • crates/ltk_ritobin/src/print/visitor

1 file changed

+5
-1
lines changed

crates/ltk_ritobin/src/print/visitor/impl.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,11 @@ impl<'a, W: fmt::Write, H: HashProvider> CstVisitor<'a, W, H> {
185185
}
186186

187187
_ => {
188-
self.text(txt);
188+
if let Some(print) = print_value {
189+
self.text(print);
190+
} else {
191+
self.text(txt);
192+
}
189193
}
190194
}
191195
self.print_safe()?;

0 commit comments

Comments
 (0)