* Allow g:vimwiki_listsyms to be of arbitrary size * Update documentation * Add support for arbitrary size listsyms to vimwikihtml
This commit is contained in:
committed by
EinfachToll
parent
3a87437005
commit
c857be2f87
@ -860,7 +860,11 @@ function! s:process_tag_list(line, lists) "{{{
|
||||
let chk = matchlist(a:line, a:rx_list)
|
||||
if !empty(chk) && len(chk[1]) > 0
|
||||
let completion = index(g:vimwiki_listsyms_list, chk[1])
|
||||
if completion >= 0 && completion <=4
|
||||
let n = len(g:vimwiki_listsyms_list)
|
||||
if completion == 0
|
||||
let st_tag = '<li class="done0">'
|
||||
elseif completion > 0 && completion < n
|
||||
let completion = float2nr(round(completion / (n-1.0) * 3.0 + 0.5 ))
|
||||
let st_tag = '<li class="done'.completion.'">'
|
||||
endif
|
||||
endif
|
||||
|
Reference in New Issue
Block a user