diff --git a/src/SimpleXLSXGen.php b/src/SimpleXLSXGen.php index 247f24f..b109df1 100644 --- a/src/SimpleXLSXGen.php +++ b/src/SimpleXLSXGen.php @@ -481,8 +481,9 @@ class SimpleXLSXGen { $COL = []; foreach( $this->sheets[$idx]['rows'] as $r ) { $CUR_ROW++; - $row = ''; + $row = ''; $CUR_COL = 0; + $RH = 0; // row height foreach( $r as $v ) { $CUR_COL++; if ( !isset($COL[ $CUR_COL ])) { @@ -528,6 +529,9 @@ class SimpleXLSXGen { $FL += self::FL_COLOR; $B = strlen($m2[1]) === 8 ? $m2[1] : ('FF' . ltrim($m2[1],'#')); } + if ( preg_match('/ height="([^"]+)"/', $m[1], $m2) ) { + $RH = $m2[1]; + } } if ( strpos( $v, '' ) !== false ) { $A += self::A_LEFT; @@ -660,7 +664,7 @@ class SimpleXLSXGen { $row .= '' . ($ct === 'inlineStr' ? '' . $cv . '' : '' . $cv . '') . "\r\n"; } - $ROWS[] = $row . "\r\n"; + $ROWS[] = ''.$row . ""; } foreach ( $COL as $k => $max ) { $COLS[] = ''; diff --git a/styles.png b/styles.png index 37624bb..d3b32fd 100644 Binary files a/styles.png and b/styles.png differ