Changeset 6125


Ignore:
Timestamp:
2003-12-04T13:52:13+13:00 (20 years ago)
Author:
mdewsnip
Message:

Angle brackets in option defaults are now entified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/printusage.pm

    r6110 r6125  
    114114    # Show the default value for the option, if there is one
    115115    if (defined $option->{'deft'}) {
    116         print STDERR "      <Default>$option->{'deft'}</Default>\n";
     116        my $optiondeftvalue = $option->{'deft'};
     117
     118        # Escape '<' and '>' characters
     119        $optiondeftvalue =~ s/</&lt;/g;
     120        $optiondeftvalue =~ s/>/&gt;/g;
     121
     122        print STDERR "      <Default>$optiondeftvalue</Default>\n";
    117123    }
    118124
Note: See TracChangeset for help on using the changeset viewer.