From 8975cbd71df048f2a4a99fdf1586ced0277428f1 Mon Sep 17 00:00:00 2001 From: df Date: Sun, 21 Feb 2021 19:40:07 +0000 Subject: [PATCH] Also use non-breaking spaces in file name display --- webif/html/browse/index.jim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webif/html/browse/index.jim b/webif/html/browse/index.jim index 2c8266d..6351ab5 100755 --- a/webif/html/browse/index.jim +++ b/webif/html/browse/index.jim @@ -58,6 +58,10 @@ proc icon {img {hover ""} {extra ""} {class "va"}} { puts ">" } +proc nbsp {str} { + return [string map {" "  } $str] +} + proc directory {file bfile tbfile} { puts "
" set img "/images/711_1_09_Media_Folder.png" @@ -69,7 +73,7 @@ proc directory {file bfile tbfile} { puts "" - puts "[string map {" "  } $bfile] + puts "[nbsp $bfile] " lassign [dir iconset $file] icons attrs @@ -173,7 +177,7 @@ proc entry {file} {{i 0}} { - $bfile + [nbsp $bfile] "