[Commits] [SCM] claws branch, master, updated. 3.13.0-82-g8902594

mones at claws-mail.org mones at claws-mail.org
Mon Nov 23 20:28:54 CET 2015


The branch, master has been updated
       via  89025943db24904d65c420716493e4ad2b40f203 (commit)
      from  8b99c246a19ac9281964d810c2f280b2ee799bfc (commit)

Summary of changes:
 tools/claws.get.tlds.pl |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 89025943db24904d65c420716493e4ad2b40f203
Author: Ricardo Mones <ricardo at mones.org>
Date:   Mon Nov 23 20:27:58 2015 +0100

    Ungroup to make future tlds.h patches smaller
    
    Future starting after the next one… ;-)

diff --git a/tools/claws.get.tlds.pl b/tools/claws.get.tlds.pl
index 0ae3990..bea3245 100755
--- a/tools/claws.get.tlds.pl
+++ b/tools/claws.get.tlds.pl
@@ -60,9 +60,8 @@ foreach (@lines) {
   next if (/^XN--.*$/); # IDNs not supported yet, see bug #1670
   my $tld = lc $_; # list comes in upper case
   print "\"$tld\""; ++$j;
-  print "," unless $i >= scalar @lines;
-  print "" . ($j % 5 == 0 or $i >= scalar @lines)? "\n": " ";
-  print "\t" if ($j % 5 == 0 and $i < scalar @lines);
+  print ",\n\t" unless $i >= scalar @lines;
+  print "\n" if $i >= scalar @lines;
 }
 
 print "};\n\n"; # close array

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list