diff options
author | Case Duckworth | 2020-05-22 16:11:39 -0500 |
---|---|---|
committer | Case Duckworth | 2020-05-22 16:12:09 -0500 |
commit | fd0e7aee80c60749adc9fc82ae476323fd826a6c (patch) | |
tree | 3f53d7c8dbbf3d0d84d26f496db842ed89368feb | |
parent | Remove unneeded stuff (diff) | |
download | bollux-fd0e7aee80c60749adc9fc82ae476323fd826a6c.tar.gz bollux-fd0e7aee80c60749adc9fc82ae476323fd826a6c.zip |
Normalize line endings
-rwxr-xr-x | bollux | 3 |
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 |
204 | display() { # display <<< STRING | 204 | display() { # 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: |