From 83b1c5a03b2eec0dd202dbf0ef5dec30acce464e Mon Sep 17 00:00:00 2001 From: c Date: Tue, 6 Feb 2024 15:42:23 +0100 Subject: [PATCH] revert bug introduced in 1622607 PR #67 removed the assert that checked width != 0 in fn new_sub_renderer() It seems commit 1622607 reintroduced the check, as a result some tables again fail to render with TooNarrow error, although both the available space seem enough and the visual appearance is satisfactory --- src/render/text_renderer.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/render/text_renderer.rs b/src/render/text_renderer.rs index 5aaad67..dfe8332 100644 --- a/src/render/text_renderer.rs +++ b/src/render/text_renderer.rs @@ -1137,9 +1137,6 @@ impl Renderer for SubRenderer { } fn new_sub_renderer(&self, width: usize) -> crate::Result { - if width < 1 { - return Err(Error::TooNarrow); - } let mut result = SubRenderer::new( width, self.options.clone(),