We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15d82fb commit f724952Copy full SHA for f724952
1 file changed
lib/util.ml
@@ -1223,7 +1223,9 @@ let create_env s =
1223
Adef.encoded (String.sub s (succ i) (String.length s - succ i)) )
1224
else separate (succ i) s
1225
in
1226
- List.map (separate 0) (get_assoc 0 0)
+ List.filter_map
1227
+ (fun s -> if s = "" then None else Some (separate 0 s))
1228
+ (get_assoc 0 0)
1229
1230
let std_color conf (s : Adef.safe_string) =
1231
"<span style=\"color:" ^<^ conf.highlight ^<^ "\">" ^<^ s ^>^ "</span>"
0 commit comments