Skip to content

Commit

Permalink
revert bug introduced in 1622607
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sftse authored and jugglerchris committed Feb 10, 2024
1 parent 83b7b1c commit 83b1c5a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/render/text_renderer.rs
Expand Up @@ -1137,9 +1137,6 @@ impl<D: TextDecorator> Renderer for SubRenderer<D> {
}

fn new_sub_renderer(&self, width: usize) -> crate::Result<Self> {
if width < 1 {
return Err(Error::TooNarrow);
}
let mut result = SubRenderer::new(
width,
self.options.clone(),
Expand Down

0 comments on commit 83b1c5a

Please sign in to comment.