[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdesdk/scripts
From:       Albert Astals Cid <aacid () kde ! org>
Date:       2013-01-15 18:59:19
Message-ID: 20130115185919.5B48AAC86A () svn ! kde ! org
[Download RAW message or body]

SVN commit 1332936 by aacid:

Add an option to not do xml unescaping


 M  +4 -0      extractrc  


--- trunk/KDE/kdesdk/scripts/extractrc #1332935:1332936
@@ -27,6 +27,7 @@
                     C++ (default), Python
 --ignore-no-input : Do not warn if there were no filenames specified
 --help|?          : Display this summary
+--no-unescape-xml : Don't do xml unescaping
 
 EOF
 
@@ -113,6 +114,7 @@
              "cstart=s"    => \my $opt_cstart,
              "language=s"  => \my $opt_language,
              "ignore-no-input" => \my $opt_ignore_no_input,
+             "no-unescape-xml" => \my $opt_no_unescape_xml,
              "help|?"      => \&usage );
 
 unless( @ARGV )
@@ -139,10 +141,12 @@
 sub unescape_xml ($) {
     my $text = shift;
 
+    if (not $opt_no_unescape_xml) {
     $text =~ s/&lt;/</g;
     $text =~ s/&gt;/>/g;
     $text =~ s/&amp;/&/g;
     $text =~ s/&quot;/"/g;
+    }
 
     return $text;
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic