gnunet-svn
[Top][All Lists]
Advanced

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

[www] 02/02: get_title: since $description is the content between <!--BE


From: gnunet
Subject: [www] 02/02: get_title: since $description is the content between <!--BEGIN--> and <!--END-->, we only have one h1 result.
Date: Mon, 04 Nov 2019 13:51:50 +0100

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

ng0 pushed a commit to branch master
in repository www.

commit d9c8dc5c2b94e28d6ffa945f0b235fc1a790aa19
Author: ng0 <address@hidden>
AuthorDate: Mon Nov 4 12:48:22 2019 +0000

    get_title: since $description is the content between <!--BEGIN--> and 
<!--END-->, we only have one h1 result.
---
 rssg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rssg b/rssg
index be65b18..1a2e596 100755
--- a/rssg
+++ b/rssg
@@ -81,7 +81,7 @@ 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 'FNR==1'
 }
 
 

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



reply via email to

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