Consistently use "\u001c" as a separator also for the first line. - gophercgis - Collection of gopher CGI/DCGI for geomyidae
 (HTM) hg clone https://bitbucket.org/iamleot/gophercgis
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) changeset b5191d95a317ae6e93b82c28a0aeea696f0d64df
 (DIR) parent e6a6a6671702598e34a377e22ed159fa01565354
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Tue,  7 Aug 2018 19:06:44 
       
       Consistently use "\u001c" as a separator also for the first line.
       
       Diffstat:
        lobsters/comments.dcgi |  15 +++++++--------
        1 files changed, 7 insertions(+), 8 deletions(-)
       ---
       diff -r e6a6a6671702 -r b5191d95a317 lobsters/comments.dcgi
       --- a/lobsters/comments.dcgi    Tue Aug 07 19:03:35 2018 +0200
       +++ b/lobsters/comments.dcgi    Tue Aug 07 19:06:44 2018 +0200
       @@ -4,8 +4,8 @@
        
        /usr/bin/ftp -V -o - "https://lobste.rs/s/${short_id}.json" |
        /usr/pkg/bin/jq -r '
       -.title + "\t" + .url + "\t" + ( .score | tostring ) + "\t" + 
       -    ( .created_at[0:19] + "Z" | sub("T"; " ") | sub("Z"; "") | sub(":[0-9]+$"; "") ) + "\t" +
       +.title + "\u001c" + .url + "\u001c" + ( .score | tostring ) + "\u001c" + 
       +    ( .created_at[0:19] + "Z" | sub("T"; " ") | sub("Z"; "") | sub(":[0-9]+$"; "") ) + "\u001c" +
            .submitter_user.username + "\u001e",
            ( .comments[] |
                .commenting_user.username + "\u001c" +
       @@ -75,12 +75,11 @@
        
        # Title, etc. TSV
        NR == 1 {
       -       split($0, fields, "\t")
       -       title = fields[1]
       -       url = fields[2]
       -       score = fields[3]
       -       created_at = fields[4]
       -       username = fields[5]
       +       title = $1
       +       url = $2
       +       score = $3
       +       created_at = $4
       +       username = $5
        
               print_title(title, url, score, created_at, username)
               next