SkÃ¥ne Sjælland Linux User Group - http://www.sslug.dk Förstasida   Anmälning   Postarkiv   Forum   Kalender   Sök
MhonArc Dato: [Date Prev] [Kronologisk oversigt] [Date Next]   TrÃ¥d: [Date Prev] [Oversigt trÃ¥de] [Date Next]   MhonArc
 

another update to cvs2html to fix html markup display in cvs comments(fwd)



Dudez - new version of cvs2html is available 
at http://www.sslug.dk/cvs2html.

patch from Kirby included 
...after my nice vacation to Turkey :-)

-- 
Peter Toft, Ph.D. sslug@sslug http://www.sslug.dk/~pto

"You don't win a battle by asking, `Will we win?' 
You win it by doing your best to win"
- Richard M Stallman

----> Visit http://petition.eurolinux.org <---


---------- Forwarded message ----------
Date: Wed, 16 Aug 2000 15:20:02 -0500
From: Kirby Vandivort <sslug@sslug>
To: sslug@sslug
Subject: another update to cvs2html to fix html markup display in cvs
    comments

Peter,

I was looking through the results of the chronological sorted list
(specified with -c or -C) and noticed that I was getting some strange
returns in some of the cvs comments.

So, I did some digging and discovered that I had a <br> in my cvs comment
that was getting interpretted as raw html instead of being switched to
the &lt;br&gt; form.  So, I did some digging through the code; found where
that _was_ being done for all of the other comments and copied that bit of
code to the area that prints the chronological html file.  I probably didn't
necessarily use the most effective method for accomplishing this, but it
seems to work OK.

I also noticed that my name somehow ended up twice in the credits list.
One of them can be deleted.  :)

Here's the straight diff (old to new):


1625c1625,1630
<         @llcvslog = (@llcvslog,@lcvslog[$jj]);
---
>       sslug@sslug;
>       s/&/&amp;/g;
>       s/\"/&quot;/g;
>       s/</&lt;/g;
>       s/>/&gt;/g;
>       @llcvslog = (@llcvslog,$_);       



and here's the diff -c:



*** cvs2html.1.66       Wed Aug 16 14:57:06 2000
--- cvs2html.new        Wed Aug 16 15:15:28 2000
***************
*** 1622,1628 ****
        $headerstill = -1;
        foreach $jj (0 .. ($#lcvslog-1)) {
        if ($headerstill == 0) {
!         @llcvslog = (@llcvslog,@lcvslog[$jj]);
        }
        else {
          $headerstill = $headerstill - 1;
--- 1622,1633 ----
        $headerstill = -1;
        foreach $jj (0 .. ($#lcvslog-1)) {
        if ($headerstill == 0) {
!       sslug@sslug;
!       s/&/&amp;/g;
!       s/\"/&quot;/g;
!       s/</&lt;/g;
!       s/>/&gt;/g;
!       @llcvslog = (@llcvslog,$_);
        }
        else {
          $headerstill = $headerstill - 1;     




Thanks!

-- 

Kirby Vandivort                      Theoretical Biophysics Group
Email: sslug@sslug          3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/    University of Illinois
Phone: (217) 244-5711                405 N. Mathews Ave
Fax: (217) 244-6078                Urbana, IL  61801, USA




 
Förstasida   Anmälning   Postarkiv   Översikt   Kalender   Sök

 
 
Fel och synpunkter angående webb-sidorna skickas till <www_admin>. Senaste ändring 2005-08-10, klockan 20:49
Denna sidan underholds av MHonArc .