[ROOT] Bug in THtml

From: GENTIT Francois-Xavier DAPNIA (GENTIT@dapnia.cea.fr)
Date: Fri Jul 05 2002 - 15:38:53 MEST


  Dear rooters,
  Since a long time, I had found that inserting </pre> just after
//Begin_Html was required, although not documented. This is confirmed by the
code in the sources of ROOT, see for example the code of TMinuit.cxx. If one
forgot it, a whole paragraph was displayed on a single very very long line.
This is because THtml inserts a <pre> (why?) just before inserting the html
comprised between Begin_Html and End_Html.
  With the new version of ROOT (tested 3.03/06 on Windows and Linux), the
things have become worse : the </pre> is no more taken into account. THtml
simply drops it. So that I had to manually open all my html files to throw
away the spurious <pre>
  I join with this mail a minimum program (with a makefile for Windows)
showing the problem. If you unpack it, you will find 2 directories:
  (1) - A directory Muster3 containing the minimum program
  (2) - A directory html, containing the file TMuster3.html produced by
THtml, and containing the file TMuster3_corrected.html, which is identical,
except that the spurious <pre> inserted by THtml has been taken out. You can
look at those 2 files with Internet Explorer, and you will see the problem!

  Thanks for either saying to me what I am doing wrong, or correcting the
bug if it is a bug.

François-Xavier Gentit
DAPNIA/SPP CEA Saclay
http://gentit.home.cern.ch/gentit/


 <<BugHtml.ZIP>> 





This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:59 MET