gnunet-svn
[Top][All Lists]
Advanced

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

[www] branch master updated (d4484b0 -> d9c8dc5)


From: gnunet
Subject: [www] branch master updated (d4484b0 -> d9c8dc5)
Date: Mon, 04 Nov 2019 13:51:48 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a change to branch master
in repository www.

    from d4484b0  fix typo
     new d446e32  tabs.
     new d9c8dc5  get_title: since $description is the content between 
<!--BEGIN--> and <!--END-->, we only have one h1 result.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 rssg | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/rssg b/rssg
index 12bea1a..1a2e596 100755
--- a/rssg
+++ b/rssg
@@ -79,14 +79,16 @@ md_to_html() {
 
 
 get_title() {
-        awk -F '[<>]' '/<h1/ { gsub(/<h1>/, ""); gsub(/<\/h1>/, ""); sub(/ 
.*/, "", $3); print $0}' | sed 's/^[ \t]*//;s/[ \t]*$//' | awk 'FNR==2'
+       awk -F '[<>]' '/<h1/ { gsub(/<h1>/, ""); gsub(/<\/h1>/, ""); sub(/ .*/, 
"", $3); print $0}' |
+       sed 's/^[ \t]*//;s/[ \t]*$//' |
+       awk 'FNR==1'
 }
 
 
 get_url() {
        grep -i '<link .*rss.xml"' | head -1 |
-           sed 's#.*href="\(.*\)".*#\1#' |
-            sed 's#../../#https://gnunet.org/#'
+       sed 's#.*href="\(.*\)".*#\1#' |
+       sed 's#../../#https://gnunet.org/#'
 }
 
 
@@ -124,12 +126,12 @@ rel_to_abs_urls() {
 
 date_rfc_822() {
        if date --version >/dev/null 2>&1; then
-            date '+%a, %d %b %Y %H:%M:%S %z' \
-                "$(echo "$1"| tr -cd '[:digit:]')0000"
-        else
+           date '+%a, %d %b %Y %H:%M:%S %z' \
+                "$(echo "$1"| tr -cd '[:digit:]')0000"
+       else
            date -j '+%a, %d %b %Y %H:%M:%S %z' \
-                "$(echo "$1"| tr -cd '[:digit:]')0000"
-        fi
+                "$(echo "$1"| tr -cd '[:digit:]')0000"
+       fi
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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