summaryrefslogtreecommitdiff
path: root/lib/html.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-08-24 15:24:17 +0100
committerPaul Buetow <paul@buetow.org>2024-08-24 15:24:17 +0100
commitd64661ccdf837bb66c3268cb4415c56ba033f515 (patch)
treed42095bcebad6a59954b61ac069a3bf9adc4925b /lib/html.source.sh
parent818e1db0599119b428436b4c2547b759150dd621 (diff)
initial atom.xml fixes
Diffstat (limited to 'lib/html.source.sh')
-rw-r--r--lib/html.source.sh6
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