sfeed_content: allow to use script on multiple TSV lines, separate by form feed (\f) - sfeed_curses - sfeed curses UI (now part of sfeed, development is in sfeed)
 (HTM) git clone git://git.codemadness.org/sfeed_curses
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 07ba84aaade3283644269073f192aea576aa4fa2
 (DIR) parent 3693c4b6d682bb0b888db657dcfc8fb9309acfd9
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat,  6 Mar 2021 12:37:28 +0100
       
       sfeed_content: allow to use script on multiple TSV lines, separate by form feed (\f)
       
       Diffstat:
         M sfeed_content                       |       7 +++++--
       
       1 file changed, 5 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/sfeed_content b/sfeed_content
       @@ -1,5 +1,5 @@
        #!/bin/sh
       -# RSS/Atom content viewer for a sfeed(5) line.
       +# RSS/Atom content viewer for sfeed(5) lines.
        #
        # Dependencies:
        # - awk, sh, less or an other pager.
       @@ -27,6 +27,10 @@ BEGIN {
                        "-display_charset=\"utf-8\" -assume_charset=\"utf-8\" ";
        }
        {
       +        if (previtem)
       +                print "\f";
       +        previtem = 1;
       +
                print "Title:     " $2;
                if (length($7))
                        print "Author:    " $7;
       @@ -46,6 +50,5 @@ BEGIN {
                        print unescape($4) | htmlconv;
                        close(htmlconv);
                }
       -        exit;
        }' | \
        ${PAGER:-less -R}