Accept '.foo' and 'foo' as value for the ext option

This commit is contained in:
EinfachToll 2018-12-17 20:27:15 +01:00
parent 645ae61dc3
commit d9b6d77e90

View File

@ -263,8 +263,13 @@ function! s:validate_settings()
\ substitute(wiki_settings['path'], '[/\\]\+$', '', '').'_html/') \ substitute(wiki_settings['path'], '[/\\]\+$', '', '').'_html/')
endif endif
let wiki_settings['template_path'] = s:normalize_path(wiki_settings['template_path']) let wiki_settings['template_path'] = s:normalize_path(wiki_settings['template_path'])
let wiki_settings['diary_rel_path'] = s:normalize_path(wiki_settings['diary_rel_path']) let wiki_settings['diary_rel_path'] = s:normalize_path(wiki_settings['diary_rel_path'])
let ext = wiki_settings['ext']
if !empty(ext) && ext[0] != '.'
let wiki_settings['ext'] = '.' . ext
endif
endfor endfor
endfunction endfunction