From 746c48fbfbdc7dff7de5b68e566c3cd7677a7d17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Fri, 25 Aug 2023 10:33:51 -0400 Subject: [PATCH] TJ operator can have a Real --- src/print_tree/stream_operations.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/print_tree/stream_operations.rs b/src/print_tree/stream_operations.rs index b7bbef2..e95f5e8 100644 --- a/src/print_tree/stream_operations.rs +++ b/src/print_tree/stream_operations.rs @@ -620,7 +620,12 @@ pub fn operation_info( formatted_string.push(' '); } } - _ => log::warn!("Only Strings and Integers expected in `TJ` operator."), + Object::Real(float_value) => { + if float_value.is_sign_negative() { + formatted_string.push(' '); + } + } + _ => log::warn!("Only Strings and Numbers expected in `TJ` operator."), } } OperationInfo {