Update Paragraph.php

This commit is contained in:
Stéphane Mourey 2016-12-13 21:51:44 +01:00 committed by GitHub
parent 23e19a2d47
commit 1a1b362f40

View File

@ -37,8 +37,8 @@ class Paragraph extends AbstractStyle
}
$xmlWriter = $this->getXmlWriter();
$marginTop = ($style->getSpaceBefore()==0) ? '0' : round(17.6 / $style->getSpaceBefore(), 2);
$marginBottom = ($style->getSpaceAfter()==0) ? '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);
$xmlWriter->startElement('style:style');
$xmlWriter->writeAttribute('style:name', $style->getStyleName());