From f84758c351dc6ca56c5c873f50646801ee5a82d7 Mon Sep 17 00:00:00 2001 From: nerun Date: Tue, 28 Nov 2023 11:44:31 -0300 Subject: [PATCH] Replaced '0cm' by 0. Just testing. --- helper.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/helper.php b/helper.php index 8c38a2a..e4d491a 100644 --- a/helper.php +++ b/helper.php @@ -708,12 +708,12 @@ function renderODTOpenTable ($renderer, $attr, $style, $attr_string) { $frame_props ['number-wrapped-paragraphs'] = 'no-limit'; if (!empty($frame_props ['float']) && $frame_props ['float'] != 'center') { - $frame_props ['margin-top'] = '0cm'; - $frame_props ['margin-right'] = '0cm'; - $frame_props ['margin-bottom'] = '0cm'; - $frame_props ['margin-left'] = '0cm'; - $frame_props ['padding-top'] = '0cm'; - $frame_props ['padding-bottom'] = '0cm'; + $frame_props ['margin-top'] = 0; + $frame_props ['margin-right'] = 0; + $frame_props ['margin-bottom'] = 0; + $frame_props ['margin-left'] = 0; + $frame_props ['padding-top'] = 0; + $frame_props ['padding-bottom'] = 0; } else { // No wrapping on not floating divs $frame_props ['wrap'] = 'none'; @@ -722,22 +722,22 @@ function renderODTOpenTable ($renderer, $attr, $style, $attr_string) { switch ($frame_props ['float']) { case 'left': if ( self::$table_entr == 1 ) { - $frame_props ['y'] = '0cm'; + $frame_props ['y'] = 0; $frame_props ['x'] = self::$box_left_pos.'cm'; self::$box_left_pos += trim($frame_props ['width'], 'cm'); } - $frame_props ['padding-left'] = '0cm'; + $frame_props ['padding-left'] = 0; break; case 'right': $frame_props ['horizontal-rel'] = 'paragraph'; $frame_props ['horizontal-pos'] = 'right'; - $frame_props ['padding-right'] = '0cm'; + $frame_props ['padding-right'] = 0; break; case 'center': $frame_props ['horizontal-pos'] = 'center'; break; default: - $frame_props ['padding-left'] = '0cm'; + $frame_props ['padding-left'] = 0; break; } $renderer->_odtOpenTextBoxUseProperties($frame_props);