Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank row when using img #4

Open
jeebsion opened this issue Oct 23, 2022 · 7 comments
Open

Blank row when using img #4

jeebsion opened this issue Oct 23, 2022 · 7 comments

Comments

@jeebsion
Copy link

Hello there,

First I wanna say thank you for such an amazing solution to web printing. Secondly, I'm having this problem - when using in I will usually get blank row at the end of the page - here's an example

(pay attention in page number 1 at the bottom)

I wonder if there's any solution to this?

@wuxue107
Copy link
Owner

I can't see this example page. You can screenshot.

I know a known bug. There is a probability that there will be blank lines in the table, but there is no good way to fix it. You can adjust the bookConfig.padding (Top and bottom margins)parameter appropriately to avoid it. Or adjust the row height of the table. Or perform special processing in the book.before_complete event

@jeebsion
Copy link
Author

Sorry .. the previous code was embedded with session .. here's another link you can see:

Sample

@jeebsion
Copy link
Author

Another thing if I might add, the word got split once the page break:

The last word in page 1 in the table is 'will' .. but when the table breaks it happens that it spelled as 'wil' .. and 'l' being bought forward to another page.

Hope you can see this :D ... thank you.

@jeebsion
Copy link
Author

Weird it's not working. Here's the css:

			div {
				font-family: 'Helvetica', Arial, sans-serif;
				color: #000;
				font-size: 14px;
				word-break: break-word;
				word-wrap: break-word;
			}

			table {
				font-family: 'Helvetica', Arial, sans-serif;
				width: 100%;
				line-height: 1.8;
				text-align: left;
				border-collapse: collapse;
				word-break: break-word;
				word-wrap: break-word;
			}

			table td {
				padding: 5px;
				vertical-align: top;
				word-break: break-word;
				word-wrap: break-word;
			}

but it is still not breaking will. The result is still the same. Any pointers?

@wuxue107
Copy link
Owner

try 1.16.0

@jeebsion
Copy link
Author

hold on .. lemme try ..

@jeebsion
Copy link
Author

ah yes .. got it already .. thank you @wuxue107 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants