Skip to content

Commit

Permalink
Update ODTUtility.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardomozart committed May 13, 2024
1 parent a5639d2 commit d7ed2cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ODT/ODTUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public static function deleteUselessElements(&$docContent, array $preventDeletet
$length = $end - $start_open + $length_close;
$content = substr ($docContent, $start_close + 1, $end - ($start_close + 1));

if ( strlen(ltrim($content," ")) < 1 && empty($content) && ctype_space ($content) ) {
if ( @blank($content) ) {
// Paragraph is empty or consists of whitespace only. Check style name.
$style_start = strpos ($docContent, '"', $start_open);
if ( $style_start === false ) {
Expand Down

0 comments on commit d7ed2cf

Please sign in to comment.