Skip to content

Commit

Permalink
Fixed missing handling of ' ' in function 'generateODTfromHTMLCo…
Browse files Browse the repository at this point in the history
…de()'.
  • Loading branch information
lpaulsen93 committed Mar 27, 2017
1 parent 36a583f commit 6daea2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ODT/ODTUtility.php
Expand Up @@ -691,6 +691,11 @@ public static function generateODTfromHTMLCode(ODTInternalParams $params, $HTMLC
);
$parsed = array();

// remove useless leading and trailing whitespace-newlines
$HTMLCode = preg_replace('/^ \n/', '', $HTMLCode);
$HTMLCode = preg_replace('/\n $/', '', $HTMLCode);
$HTMLCode = str_replace(' ', ' ', $HTMLCode);

// Get default list style names
if (!empty($options ['list_p_style'])) {
$p_list_style = $options ['list_p_style'];
Expand Down

0 comments on commit 6daea2a

Please sign in to comment.