From b7170e90daeaf0d0c9cdaeb04f0c910f62c26ff8 Mon Sep 17 00:00:00 2001 From: Jovansonlee Cesar Date: Thu, 26 Nov 2020 00:54:24 +0800 Subject: Fix the textnode where whitespaces are omitted --- svgbob/src/buffer/cell_buffer.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/svgbob/src/buffer/cell_buffer.rs b/svgbob/src/buffer/cell_buffer.rs index 99a2e53..fa3a634 100644 --- a/svgbob/src/buffer/cell_buffer.rs +++ b/svgbob/src/buffer/cell_buffer.rs @@ -249,6 +249,8 @@ impl CellBuffer { }} text {{ + /* This fix the spacing bug in svg text*/ + white-space: pre; fill: {stroke_color}; }} rect.backdrop{{ -- cgit v1.2.3