diff options
author | Case Duckworth | 2022-07-26 11:28:30 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-26 11:28:30 -0500 |
commit | f38afa32c0543da222d91ee256529515242f4ab3 (patch) | |
tree | 17a8dbe77c3325b826f21bb94d627da990b7fc8d /sfeedrc | |
parent | Change default date format (diff) | |
download | sfeed-f38afa32c0543da222d91ee256529515242f4ab3.tar.gz sfeed-f38afa32c0543da222d91ee256529515242f4ab3.zip |
Whitespace
Diffstat (limited to 'sfeedrc')
-rw-r--r-- | sfeedrc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sfeedrc b/sfeedrc index e4a7f37..93ccb02 100644 --- a/sfeedrc +++ b/sfeedrc | |||
@@ -223,11 +223,8 @@ print | |||
223 | # into a URL to get to the comments. | 223 | # into a URL to get to the comments. |
224 | awk -v SUBREDDIT="$1" -v ALT=i.reddit.com \ | 224 | awk -v SUBREDDIT="$1" -v ALT=i.reddit.com \ |
225 | 'BEGIN {FS="\t";OFS="\t"} | 225 | 'BEGIN {FS="\t";OFS="\t"} |
226 | { $6 = $3 #ALT "/" SUBREDDIT "/" substr($6, 4) | 226 | { $6 = $3 #ALT "/" SUBREDDIT "/" substr($6, 4) } |
227 | } | 227 | { if (match($4,/<a href="([^"]*)">\[link\]<\/a>/,ln)) $3 = ln[1] } |
228 | { | ||
229 | if (match($4,/<a href="([^"]*)">\[link\]<\/a>/,ln)) $3 = ln[1] | ||
230 | } | ||
231 | { gsub(/www\.reddit\.com/, ALT, $0) } | 228 | { gsub(/www\.reddit\.com/, ALT, $0) } |
232 | { print }' | 229 | { print }' |
233 | ;; | 230 | ;; |