From d64661ccdf837bb66c3268cb4415c56ba033f515 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 24 Aug 2024 15:24:17 +0100 Subject: initial atom.xml fixes --- lib/html.source.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/html.source.sh') diff --git a/lib/html.source.sh b/lib/html.source.sh index 382f5e7..4be36df 100644 --- a/lib/html.source.sh +++ b/lib/html.source.sh @@ -141,7 +141,7 @@ html::source_highlight () { html::list::encode () { local text="$1"; shift - if [[ "$text" != '.'* ]]; then + if [[ "$text" != ':'* ]]; then # No ToC html::encode "$text" return @@ -150,8 +150,8 @@ html::list::encode () { local -i toc_indent=0 # If there's a . (dot) in the liste element, it then indicates a ToC element - while [[ "$text" == '.'* ]]; do - text="$($SED 's/\.//' <<< "$text")" + while [[ "$text" == ':'* ]]; do + text="$($SED 's/://' <<< "$text")" : $(( toc_indent++ )) done -- cgit v1.2.3