Skip to content

Commit

Permalink
revert bug introduced in 1622607
Browse files Browse the repository at this point in the history
PR jugglerchris#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 committed Feb 8, 2024
1 parent 430f371 commit 63c82f1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/render/text_renderer.rs
Expand Up @@ -1135,9 +1135,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 63c82f1

Please sign in to comment.