Skip to content

Commit 9ba0fa7

Browse files
committed
ADD: noWrap to Word2007 writer
1 parent 3f2b90c commit 9ba0fa7

File tree

1 file changed

+4
-0
lines changed
  • src/PhpWord/Writer/Word2007/Style

1 file changed

+4
-0
lines changed

src/PhpWord/Writer/Word2007/Style/Cell.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ public function write(): void
8989
$xmlWriter->writeElementIf(null !== $gridSpan, 'w:gridSpan', 'w:val', $gridSpan);
9090
$xmlWriter->writeElementIf(null !== $vMerge, 'w:vMerge', 'w:val', $vMerge);
9191

92+
// noWrap
93+
$noWrap = $style->getNoWrap();
94+
$xmlWriter->writeElementIf(true === $noWrap, 'w:noWrap');
95+
9296
$xmlWriter->endElement(); // w:tcPr
9397
}
9498

0 commit comments

Comments
 (0)