set name [regsub {^(#+) } "$line" {}]
}
set line "<h$n id=\"TOC-[regsub -all { } "$name" "-"]\">$link $name</h$n>"
+ set blank 0
}
if { [regexp -- {\\$} "$line" ] } {
set line "[regsub {\\$} "$line" {<br>}]"
global output_directory input_directory icon genre_list title
set l [glob -tails -nocomplain -directory "$input_directory/$path" "{.rules.md,index.md,*}"]
foreach element $l {dict set tmp $element 1}
- foreach name [dict keys $tmp] {
+ set l [lsort [dict keys $tmp]]
+ foreach name $l {
if { [file type "$input_directory/$path/$name"] == "directory" } {
file mkdir "$output_directory/$append/$path/$name"
rescan "$path/$name" "$dots../" "$append"