Adapt script to work with PCAD boms
[eda-utils.git] / bomgen / Bomgen / functions.inc.php
index b2abe0b..1340e11 100644 (file)
@@ -146,7 +146,7 @@ function xls_write_cell_gen($row, $col, $value, $format_texte, $entete, $size, $
   $value = mb_convert_encoding($value, "ISO-8859-1", "UTF-8");
 
   /* Création object format. */
-  $format =& $workbook->addFormat(); 
+  $format =& $workbook->addFormat();
 
   /* Grosseur du texte. */
   $format->setSize($size);
@@ -157,6 +157,7 @@ function xls_write_cell_gen($row, $col, $value, $format_texte, $entete, $size, $
 
   if ($format_texte == XLS_FORMAT_TEXT) {
     $format->setAlign('left');
+    $format->setAlign('top');
   } else if ($format_texte == XLS_FORMAT_MONETARY) {
     $format->setNumFormat('$0.00');
   }