We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac4180e + 1a1b362 commit 75bf84fCopy full SHA for 75bf84f
src/PhpWord/Writer/ODText/Style/Paragraph.php
@@ -35,8 +35,8 @@ public function write()
35
}
36
$xmlWriter = $this->getXmlWriter();
37
38
- $marginTop = is_null($style->getSpaceBefore()) ? '0' : round(17.6 / $style->getSpaceBefore(), 2);
39
- $marginBottom = is_null($style->getSpaceAfter()) ? '0' : round(17.6 / $style->getSpaceAfter(), 2);
+ $marginTop = ($style->getSpaceBefore() ==0 ) ? '0' : round(17.6 / $style->getSpaceBefore(), 2);
+ $marginBottom = ($style->getSpaceAfter() == 0) ? '0' : round(17.6 / $style->getSpaceAfter(), 2);
40
41
$xmlWriter->startElement('style:style');
42
$xmlWriter->writeAttribute('style:name', $style->getStyleName());
0 commit comments