You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this seems like a bug, it's actually the expected behavior. You have not reserved enough room in the column for the image to fit with its natural size. And the reason for the error has to do with limitations in how text is arranged in Prawn (otherwise, we get other problems, like #1516).
There are numerous ways to solve this problem:
Increase the width of the column (e.g., cols="30s,40,30")
Give the image an explicit width that is less than the computed width of the column (e.g., pdfwidth=1.5in)
Add the AsciiDoc style to the table cell with the image (which changes how images are arranged)
Add the AsciiDoc style to the table cell with the image and use a block image instead of an inline image
The last solution is the most robust because it allows the image to be resized to fit the column width if necessary.
Thank you for the prompt answer.
Since the document is generated ok in 1.5.0-rc1, I assumed that this was a
regression.
Keep up your fantastic work!
/Anders
Den lör 14 mars 2020 kl 10:19 skrev Dan Allen <notifications@github.com>:
Hi.
I think that I have found a regression in how image content in tables are handled in situations where the image is deemed 'too large'.
The attached zip contains an adoc and two associated images. It is rendered in v1.5.0rc1 but will crash v1.5.3.
bug_report.zip
The text was updated successfully, but these errors were encountered: