[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[www] 01/02: tabs.
From: |
gnunet |
Subject: |
[www] 01/02: tabs. |
Date: |
Mon, 04 Nov 2019 13:51:49 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository www.
commit d446e32e3520a030fbc3e730a28646b97f62f355
Author: ng0 <address@hidden>
AuthorDate: Mon Nov 4 12:34:26 2019 +0000
tabs.
---
rssg | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/rssg b/rssg
index 12bea1a..be65b18 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==2'
}
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.