projects
/
eda-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3ea789
)
Fix stripping of leading zero for text columns (footprint)
author
Hugo Villeneuve
<hugo@hugovil.com>
Mon, 20 Jan 2014 20:55:22 +0000
(15:55 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Fri, 24 Jan 2014 03:54:32 +0000
(22:54 -0500)
bomgen/Bomgen/functions.inc.php
patch
|
blob
|
history
diff --git
a/bomgen/Bomgen/functions.inc.php
b/bomgen/Bomgen/functions.inc.php
index
1340e11
..
924374e
100644
(file)
--- a/
bomgen/Bomgen/functions.inc.php
+++ b/
bomgen/Bomgen/functions.inc.php
@@
-184,7
+184,11
@@
function xls_write_cell_gen($row, $col, $value, $format_texte, $entete, $size, $
$format->setLeft(1); /* Bordure de gauche. */
}
- $worksheet->write($row, $col, $value, $format);
+ if ($format_texte == XLS_FORMAT_TEXT) {
+ $worksheet->writeString($row, $col, $value, $format);
+ } else {
+ $worksheet->write($row, $col, $value, $format);
+ }
}
function xls_write_col_header($row, $col, $value)