From e0dea8e95c7466a4830841d621d66b91d3eea35a Mon Sep 17 00:00:00 2001 From: Roman Syroeshko Date: Sat, 21 Feb 2015 18:51:12 +0400 Subject: [PATCH] Fixed broken paragraph alignment for OpenXml. --- tests/PhpWord/Tests/Style/ParagraphTest.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/PhpWord/Tests/Style/ParagraphTest.php b/tests/PhpWord/Tests/Style/ParagraphTest.php index e3550819..55e6e395 100644 --- a/tests/PhpWord/Tests/Style/ParagraphTest.php +++ b/tests/PhpWord/Tests/Style/ParagraphTest.php @@ -67,7 +67,6 @@ class ParagraphTest extends \PHPUnit_Framework_TestCase $object = new Paragraph(); $attributes = array( -// 'align' => 'justify', 'spaceAfter' => 240, 'spaceBefore' => 240, 'indent' => 1, @@ -85,11 +84,7 @@ class ParagraphTest extends \PHPUnit_Framework_TestCase foreach ($attributes as $key => $value) { $get = "get{$key}"; $object->setStyleValue("$key", $value); - /*if ('align' == $key) { - if ('justify' == $value) { - $value = 'both'; - } - } else*/if ('indent' == $key || 'hanging' == $key) { + if ('indent' == $key || 'hanging' == $key) { $value = $value * 720; } elseif ('spacing' == $key) { $value += 240;