diff options
Diffstat (limited to 'lib/html.source.sh')
| -rw-r--r-- | lib/html.source.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
