format
This commit is contained in:
parent
75bf84fa48
commit
1b9c1d921b
@ -35,8 +35,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 = (is_null($style->getSpaceBefore()) || $style->getSpaceBefore() == 0) ? '0' : round(17.6 / $style->getSpaceBefore(), 2);
|
||||
$marginBottom = (is_null($style->getSpaceAfter()) || $style->getSpaceAfter() == 0) ? '0' : round(17.6 / $style->getSpaceAfter(), 2);
|
||||
|
||||
$xmlWriter->startElement('style:style');
|
||||
$xmlWriter->writeAttribute('style:name', $style->getStyleName());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user