aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/explode.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/explode.rs')
-rw-r--r--src/bin/explode.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/explode.rs b/src/bin/explode.rs
index 37ed07c..d23a59b 100644
--- a/src/bin/explode.rs
+++ b/src/bin/explode.rs
@@ -1,4 +1,5 @@
use std::io::Read as _;
+use unicode_width::UnicodeWidthStr as _;
#[derive(Default)]
struct Printer {
@@ -12,7 +13,7 @@ impl Printer {
fn flush(&mut self) {
if !self.chars.is_empty() {
- println!("TEXT \"{}\"", self.chars);
+ println!("TEXT({}) \"{}\"", self.chars.width(), self.chars);
self.chars.clear();
}
}