Index: filter.php
===================================================================
RCS file: /cvsroot/moodle/moodle/filter/tex/filter.php,v
retrieving revision 1.18.4.3
diff -u -r1.18.4.3 filter.php
--- filter.php	16 Feb 2009 03:08:47 -0000	1.18.4.3
+++ filter.php	17 Feb 2009 04:47:12 -0000
@@ -52,9 +52,15 @@
         $style = '';
     }
     if ($height) {
+        if (empty($style)) {
+            $style = ' style="';
+        }
         $style .= " height:{$height}px;";
     }
     if ($width) {
+        if (empty($style)) {
+            $style = ' style="';
+        }
         $style .= " width:{$width}px;";
     }
     $style .= '"';

