mirror of https://codeberg.org/cage/tinmop/
- [GUI] fixed TOC's item number padding.
This commit is contained in:
parent
a5df3cbeae
commit
b9ee04c1e3
|
@ -441,7 +441,9 @@
|
|||
#'extract-level
|
||||
#'extract-gid
|
||||
#'extract-header-text))
|
||||
(toc-text (mapcar (lambda (a) (getf a :header)) toc))
|
||||
(toc-text (mapcar (lambda (a)
|
||||
(trim-blanks (getf a :header)))
|
||||
toc))
|
||||
(longest-text (find-longest-string toc-text))
|
||||
(max-text-length (length longest-text))
|
||||
(toc-numbers (mapcar (lambda (a)
|
||||
|
@ -452,7 +454,7 @@
|
|||
(join-with-strings numbers-as-text ".")))
|
||||
toc))
|
||||
(longest-number (find-longest-string toc-numbers))
|
||||
(max-number-length (length longest-number))
|
||||
(max-number-length (1+ (length longest-number)))
|
||||
(max-non-padded-text-size (+ max-text-length max-number-length))
|
||||
(toc-entries-text
|
||||
(loop for text in toc-text
|
||||
|
|
Loading…
Reference in New Issue