Skip to content

Commit

Permalink
Add a text break after every paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbrouwers committed Oct 29, 2015
1 parent 38cb04d commit ae31196
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PhpWord/Shared/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @link https://github.com/PHPOffice/PHPWord
* @copyright 2010-2014 PHPWord contributors
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3a
*/

namespace PhpOffice\PhpWord\Shared;
Expand Down Expand Up @@ -197,6 +197,7 @@ private static function parseParagraph($node, $element, &$styles)
{
$styles['paragraph'] = self::parseInlineStyle($node, $styles['paragraph']);
$newElement = $element->addTextRun($styles['paragraph']);
$newElement->addTextBreak(1);

return $newElement;
}
Expand Down

0 comments on commit ae31196

Please sign in to comment.