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

Problem with new line in TD #226

Open
poitierjohan opened this Issue Sep 6, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@poitierjohan

poitierjohan commented Sep 6, 2017

Hi,

I have a problem with a TD. My text is in 1 line, but html2pdf put a new line in my cell (TD)
See this picture. The concerned text is in yellow.
image

How can I resolve this problem ?

Thank you for your help.

@spipu

This comment has been minimized.

Owner

spipu commented Jan 20, 2018

can you provide an html example ?

@poitierjohan

This comment has been minimized.

poitierjohan commented Jan 20, 2018

Hi,

There is an html example :
<td class="padding" style="width: 30%">{{ user.fullName}}</td>

The "padding" class have this parameters :
.padding { padding: 5px; }

The problem is that the text is too long, I suppose and create a backreturn.
Is it possible to resolved this problem ?
Or... Can I have this : "My name is to..." in place of "My name is too long"
Adapt the text in function of the width of the TD.

Thank you for your following.

(i speek french, better than english)

@spipu

This comment has been minimized.

Owner

spipu commented Oct 26, 2018

Hello
pour ce qui est de raccourcir le texte, ce sera plus à toi de le préparer la valeur en amont.
par contre, ca m'aurait intéressé d'avoir un exemple complet d'HTML causant le pb (saut de ligne qui en fin de compte n'est pas affiché)

@spipu spipu added the bug label Oct 26, 2018

@poitierjohan

This comment has been minimized.

poitierjohan commented Oct 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment