From fd0e7aee80c60749adc9fc82ae476323fd826a6c Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 22 May 2020 16:11:39 -0500 Subject: Normalize line endings --- bollux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bollux b/bollux index 8026179..e31d37e 100755 --- a/bollux +++ b/bollux @@ -202,7 +202,8 @@ handle() { # handle URL < RESPONSE # display the page display() { # display <<< STRING - cat + # normalize line endings to "\n" + awk 'BEGIN{RS=""}{gsub("\r\n?","\n");print}' # TODO: use less with linking and stuff # less -R -p'^=>' +g # lesskey: -- cgit 1.4.1-21-gabe81