From ccf11000a5509c8761adaf30e85d3122ae2792f9 Mon Sep 17 00:00:00 2001
From: Rene Brun <Rene.Brun@cern.ch>
Date: Tue, 2 Sep 2003 17:16:30 +0000
Subject: [PATCH] From Axel Naumann:

Fix in THtml in not generate <pre> </pre> statements in some cases.


git-svn-id: http://root.cern.ch/svn/root/trunk@7201 27541ba8-7e3a-0410-8455-c3a389f83636
---
 html/src/THtml.cxx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/html/src/THtml.cxx b/html/src/THtml.cxx
index 4b9982815fe..b377d90509b 100644
--- a/html/src/THtml.cxx
+++ b/html/src/THtml.cxx
@@ -1,4 +1,4 @@
-// @(#)root/html:$Name:  $:$Id: THtml.cxx,v 1.41 2003/07/10 15:37:34 brun Exp $
+// @(#)root/html:$Name:  $:$Id: THtml.cxx,v 1.42 2003/07/14 07:52:31 brun Exp $
 // Author: Nenad Buncic (18/10/95), Axel Naumann <mailto:axel@fnal.gov> (09/28/01)
 
 /*************************************************************************
@@ -2326,13 +2326,15 @@ void THtml::ExpandKeywords(ofstream & out, char *text, TClass * ptr2class,
          if (!strcasecmp(keyword, "end_html") && *(keyword - 1) != '\"') {
             flag = kFALSE;
             hide = kTRUE;
-            pre_is_open = kFALSE;
+            pre_is_open = kTRUE;
+	    out << endl << "<pre>";
          }
       } else {
          if (!strcasecmp(keyword, "begin_html") && *(keyword - 1) != '\"') {
             flag = kTRUE;
             hide = kTRUE;
-            pre_is_open = kTRUE;
+            pre_is_open = kFALSE;
+	    out << "</pre>" << endl;
          } else {
             *end = c;
             tempEndPtr = end;
-- 
GitLab