-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrapping for longer cell content
The previous fix worked for table cells that were not wrapped in by "table-cell" markers, but didn't fix situations where the cell content was more than 30 characters (and wrapped by table-cell markers). This patch moves the logic from handleText() to handleTableCell(). A utility function was added to calculate the total length of content in the cell (taking into account that inline markup will create "child nodes"). Checking for empty cells at the end of a row is no longer needed because of this, as we can unconditionally add a cariage return for the last cell (except for long lines, as table-cell markers already have a newline included). Signed-off-by: Sebastiaan van Stijn <[email protected]>
- Loading branch information
Showing
2 changed files
with
42 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters