From: Nishi Date: Tue, 15 Oct 2024 20:27:31 +0000 (+0000) Subject: fix how it handles sections X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f68dccc95c8c8b5cc7e977a12a3c2cc2f3272840;p=docgen.git fix how it handles sections git-svn-id: file:///raid/svn-personal/docgen/trunk@15 44bc13e5-44cb-984e-b856-1907bf1ada44 --- diff --git a/docgen b/docgen index 2ed7e32..468b84c 100755 --- a/docgen +++ b/docgen @@ -265,6 +265,7 @@ proc parse_markdown {path _result} { set name [regsub {^(#+) } "$line" {}] } set line "$link $name" + set blank 0 } if { [regexp -- {\\$} "$line" ] } { set line "[regsub {\\$} "$line" {
}]" @@ -286,7 +287,8 @@ proc rescan {path dots append} { 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"