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

Templates processing: table inside table cell and document corrupted in result. #1871

Open
kindrosker opened this issue May 24, 2020 · 0 comments

Comments

@kindrosker
Copy link

kindrosker commented May 24, 2020

I'm using this example to insert table https://phpword.readthedocs.io/en/latest/templates-processing.html#setcomplexblock

$table = new Table(array('borderSize' => 12, 'borderColor' => 'green', 'width' => 6000, 'unit' => TblWidth::TWIP));
$table->addRow();
$table->addCell(150)->addText('Cell A1');
$table->addCell(150)->addText('Cell A2');
$table->addCell(150)->addText('Cell A3');
$table->addRow();
$table->addCell(150)->addText('Cell B1');
$table->addCell(150)->addText('Cell B2');
$table->addCell(150)->addText('Cell B3');
$templateProcessor->setComplexBlock('table', $table);

and everything works ok except case when I try insert table in table cell.
If I add empty line at the bottom in table cell then table inserted ok.
issue_with_table3

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