Index: LaTeX.tmbundle/Support/bin/latexErrWarnHtml.py
===================================================================
--- LaTeX.tmbundle/Support/bin/latexErrWarnHtml.py	(revision 7742)
+++ LaTeX.tmbundle/Support/bin/latexErrWarnHtml.py	(working copy)
@@ -30,7 +30,7 @@
     sys.stderr.write("Usage: "+argv[0]+" [-v] tex-command file.tex")
     sys.exit(255)
 
-tex = os.popen(texCommand+" "+fileName)
+tex = os.popen(texCommand+" "+fileName+" 2>&1")
 
 numWarns = 0
 numErrs = 0
@@ -44,9 +44,9 @@
     line = line.rstrip("\n")
     # print out first line
     if re.match('^This is',line):
-        print line[:-1]
+        print line
     if re.match('^Document Class',line):
-        print line[:-1]
+        print line
     m = newFilePat.match(line)
     if m:
         currentFile = m.group(1)
@@ -55,10 +55,10 @@
     if inf:
         print "    Including: " + inf.group(1)
     if re.match('^Output written',line):
-        print line[:-1]
+        print line
     if re.match('Running makeindex',line):
         print '<div class="mkindex">'        
-        print '<h3>' + line[:-1] + '</h3>'
+        print '<h3>' + line + '</h3>'
         sys.stdin.readline()
         inbibidx = True
     
@@ -73,7 +73,7 @@
         print line
         line = sys.stdin.readline()
         if line and re.match('^ ==> Fatal error occurred', line):
-            print line.rstrip("\n")
+            print line
             print '</div>'
             isFatal = True
         else:
