From 2d60db4ce421493f38c7c81717e010833aaca50e Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 25 Feb 2021 19:39:28 -0600 Subject: Add -S to less_cmd (fix #9) Should keep from wrapping pre-formatted blocks. --- bollux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bollux b/bollux index dcf81ae..2d206b1 100755 --- a/bollux +++ b/bollux @@ -666,7 +666,8 @@ display() { # display METADATA [TITLE] case "$mime" in text/*) set_title "$title${title:+ - }bollux" - less_cmd=(less -R) # render ANSI color escapes + # render ANSI color escapes and don't wrap pre-formatted blocks + less_cmd=(less -RS) mklesskey "$BOLLUX_LESSKEY" && less_cmd+=(-k "$BOLLUX_LESSKEY") local helpline="o:open, g/G:goto, [:back, ]:forward, r:refresh" less_cmd+=( -- cgit 1.4.1-21-gabe81