bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] fix list_body


From: Hideki IWAMOTO
Subject: [PATCH] fix list_body
Date: Wed, 26 Mar 2003 01:50:16 +0900

"&<>" is not converted when table tag is used.

Index: htags/htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.108
diff -u -r1.108 htags.in
--- htags/htags.in      21 Mar 2003 16:16:26 -0000      1.108
+++ htags/htags.in      25 Mar 2003 16:37:23 -0000
@@ -517,15 +517,18 @@
        local($name, $lno, $filename, $line) = ($s =~ 
/^(\S+)\s+(\d+)\s+\.\/(\S+) (.*)$/);
        local($html) = &'path2url($filename);
 
-       $s =~ s/\.\///;
-       $s =~ s/&/&amp;/g;
-       $s =~ s/</&lt;/g;
-       $s =~ s/>/&gt;/g;
        if ($'table_list) {
+               $line =~ s/&/&amp;/g;
+               $line =~ s/</&lt;/g;
+               $line =~ s/>/&gt;/g;
                $line =~ s/ /&nbsp;&nbsp;/g;
                $line =~ s/     /&nbsp;&nbsp;&nbsp;&nbsp;/g;
                $s = "<TR><TD NOWRAP><A 
HREF=$srcdir\/$html#$lno>$name</A></TD><TD NOWRAP ALIGN=right>$lno</TD><TD 
NOWRAP ALIGN=left>$filename
</TD><TD NOWRAP>$line</TD></TR>";
        } else {
+               $s =~ s/\.\///;
+               $s =~ s/&/&amp;/g;
+               $s =~ s/</&lt;/g;
+               $s =~ s/>/&gt;/g;
                $s =~ s/^($name)/<A HREF=$srcdir\/$html#$lno>$1<\/A>/;
        }
        $s . "\n";

----
Hideki IWAMOTO  address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]