From f38afa32c0543da222d91ee256529515242f4ab3 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 26 Jul 2022 11:28:30 -0500 Subject: Whitespace --- sfeedrc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sfeedrc b/sfeedrc index e4a7f37..93ccb02 100644 --- a/sfeedrc +++ b/sfeedrc @@ -223,11 +223,8 @@ print # into a URL to get to the comments. awk -v SUBREDDIT="$1" -v ALT=i.reddit.com \ 'BEGIN {FS="\t";OFS="\t"} -{ $6 = $3 #ALT "/" SUBREDDIT "/" substr($6, 4) -} -{ -if (match($4,/\[link\]<\/a>/,ln)) $3 = ln[1] -} +{ $6 = $3 #ALT "/" SUBREDDIT "/" substr($6, 4) } +{ if (match($4,/\[link\]<\/a>/,ln)) $3 = ln[1] } { gsub(/www\.reddit\.com/, ALT, $0) } { print }' ;; -- cgit 1.4.1-21-gabe81