about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-05-22 16:11:39 -0500
committerCase Duckworth2020-05-22 16:12:09 -0500
commitfd0e7aee80c60749adc9fc82ae476323fd826a6c (patch)
tree3f53d7c8dbbf3d0d84d26f496db842ed89368feb
parentRemove unneeded stuff (diff)
downloadbollux-fd0e7aee80c60749adc9fc82ae476323fd826a6c.tar.gz
bollux-fd0e7aee80c60749adc9fc82ae476323fd826a6c.zip
Normalize line endings
-rwxr-xr-xbollux3
1 files changed, 2 insertions, 1 deletions
diff --git a/bollux b/bollux index 8026179..e31d37e 100755 --- a/bollux +++ b/bollux
@@ -202,7 +202,8 @@ handle() { # handle URL < RESPONSE
202 202
203# display the page 203# display the page
204display() { # display <<< STRING 204display() { # display <<< STRING
205 cat 205 # normalize line endings to "\n"
206 awk 'BEGIN{RS=""}{gsub("\r\n?","\n");print}'
206 # TODO: use less with linking and stuff 207 # TODO: use less with linking and stuff
207 # less -R -p'^=>' +g 208 # less -R -p'^=>' +g
208 # lesskey: 209 # lesskey: