diff options
author | Jovansonlee Cesar <ivanceras@gmail.com> | 2020-11-26 00:54:24 +0800 |
---|---|---|
committer | Jovansonlee Cesar <ivanceras@gmail.com> | 2020-11-26 00:54:24 +0800 |
commit | b7170e90daeaf0d0c9cdaeb04f0c910f62c26ff8 (patch) | |
tree | 415c441ecff303594532a31e7e082b9be777f4cd | |
parent | a33379db295d188fcbee430399401d16c535ddd9 (diff) |
Fix the textnode where whitespaces are omitted
-rw-r--r-- | svgbob/src/buffer/cell_buffer.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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{{ |