Skip to content

Commit

Permalink
Skip non-table elements when generating the cell map
Browse files Browse the repository at this point in the history
Closes #1161, closes #1103, closes #1129
  • Loading branch information
Andrew Scott authored and bsweeney committed Apr 4, 2016
1 parent 003cea0 commit 9af6eab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Cellmap.php
Expand Up @@ -516,7 +516,10 @@ public function add_frame(Frame $frame)

$start_row = $this->__row;
foreach ($frame->get_children() as $child) {
$this->add_frame($child);
// Ignore all Text frames and :before/:after pseudo-selector elements.
if (!($child instanceof FrameDecorator\Text) && $child->get_node()->nodeName !== 'dompdf_generated') {
$this->add_frame($child);
}
}

if ($display === "table-row") {
Expand Down

0 comments on commit 9af6eab

Please sign in to comment.