[git] gnupg-doc - branch, preview, updated. c548dd36ab43a729b8c6a0455d144b3ab62f420c

by Werner Koch cvs at cvs.gnupg.org
Fri May 12 13:22:54 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GnuPG website and other docs".

The branch, preview has been updated
       via  c548dd36ab43a729b8c6a0455d144b3ab62f420c (commit)
      from  0d64d3a1232e0c8a04f7b6a8fddfe9d092013c75 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c548dd36ab43a729b8c6a0455d144b3ab62f420c
Author: Werner Koch <wk at gnupg.org>
Date:   Fri May 12 13:19:44 2017 +0200

    tools: Use non-breaking thinsp

diff --git a/tools/mkkudos.sh b/tools/mkkudos.sh
index 613caf3..83b3121 100755
--- a/tools/mkkudos.sh
+++ b/tools/mkkudos.sh
@@ -241,7 +241,7 @@ for file in "$htdocs/donate/"kudos-????.html "$htdocs/donate/"kudos.html \
            next
      }
      /<!--INSERT-YEAR-EURO-->/ {
-           printf "<!--INSERT-YEAR-EURO--> %s €\n", euroyr;
+           printf "<!--INSERT-YEAR-EURO--> %s&#x202f;€\n", euroyr;
            next
      }
      /<!--INSERT-YEAR-N-->/ {
@@ -286,30 +286,36 @@ for file in "$htdocs/donate/"kudos-????.html "$htdocs/donate/"kudos.html \
      }
      /<!--CMPGN-RECUR-EURO-->/ {
            n = index($0,"<!--CMPGN");
-           printf "%s!--CMPGN-RECUR-EURO-->%'"'"'d €\n",
-                  substr($0,1,n), int(recur_euroyr);
+           printf "%s!--CMPGN-RECUR-EURO-->%s&#x202f;€\n",
+                  substr($0,1,n), format_number(recur_euroyr);
            next
      }
      /<!--CMPGN-RECUR-EURO-GOAL-->/ {
            n = index($0,"<!--CMPGN");
-           printf "%s!--CMPGN-RECUR-EURO-GOAL-->%'"'"'d €\n",
-                  substr($0,1,n), int(recur_goal);
+           printf "%s!--CMPGN-RECUR-EURO-GOAL-->%s&#x202f;€\n",
+                  substr($0,1,n), format_number(recur_goal);
            next
      }
      /<!--CMPGN-ONCE-EURO-->/ {
            n = index($0,"<!--CMPGN");
-           printf "%s!--CMPGN-ONCE-EURO-->%'"'"'d €\n",
-                  substr($0,1,n), int(euroyr);
+           printf "%s!--CMPGN-ONCE-EURO-->%s&#x202f;€\n",
+                  substr($0,1,n), format_number(euroyr);
            next
      }
      /<!--CMPGN-RECUR-COUNT-->/ {
            n = index($0,"<!--CMPGN");
            printf "%s!--CMPGN-RECUR-COUNT-->%s\n",
-                  substr($0,1,n), recur_nyr;
+                  substr($0,1,n), format_number(recur_nyr);
            next
      }
      !indon { print }
 
+     function format_number (n) {
+          buf = sprintf("%'"'"'d", int(n));
+          gsub(/,/, "\\&#x202f;", buf);
+          return buf;
+     }
+
      function insert (tag) {
        while (getline < donors) {
          if ( $0 ~ /^(#.*)?$/ )

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

Summary of changes:
 tools/mkkudos.sh | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
The GnuPG website and other docs
http://git.gnupg.org




More information about the Gnupg-commits mailing list