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

New line into cell. #1880

Closed
ghost opened this issue Jun 8, 2020 · 2 comments
Closed

New line into cell. #1880

ghost opened this issue Jun 8, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 8, 2020

Is here any way how to write more that one line into table cell?

Input text:
print

Result:
result

Should looks like:
Should looks like

@ghost ghost added the WontFix label Jun 8, 2020
@yavro
Copy link

yavro commented Jun 9, 2020

Yes, it is possible. You can use separate addText() calls. Something like this:

$table->addRow();
$cell = $table->addCell(30);
$cell->addText('First line.');
$cell->addText('Second line.');

@ghost
Copy link
Author

ghost commented Jun 10, 2020

Thanks

@ghost ghost closed this as completed Jun 10, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant