fix missing custom_wiki2html_args default key

Ref #475
This commit is contained in:
Petrus 2018-04-13 17:03:21 +08:00 committed by EinfachToll
parent 86a8604c4e
commit 65c4ffacca
2 changed files with 2 additions and 1 deletions

View File

@ -1397,7 +1397,7 @@ function! vimwiki#html#CustomWiki2HTML(path, wikifile, force) "{{{
\ (len(vimwiki#vars#get_wikilocal('template_default')) > 0 ? vimwiki#vars#get_wikilocal('template_default') : '-'). ' '. \ (len(vimwiki#vars#get_wikilocal('template_default')) > 0 ? vimwiki#vars#get_wikilocal('template_default') : '-'). ' '.
\ (len(vimwiki#vars#get_wikilocal('template_ext')) > 0 ? vimwiki#vars#get_wikilocal('template_ext') : '-'). ' '. \ (len(vimwiki#vars#get_wikilocal('template_ext')) > 0 ? vimwiki#vars#get_wikilocal('template_ext') : '-'). ' '.
\ (len(vimwiki#vars#get_bufferlocal('subdir')) > 0 ? shellescape(s:root_path(vimwiki#vars#get_bufferlocal('subdir'))) : '-'). ' '. \ (len(vimwiki#vars#get_bufferlocal('subdir')) > 0 ? shellescape(s:root_path(vimwiki#vars#get_bufferlocal('subdir'))) : '-'). ' '.
\ (len(vimwiki#vars#get_global('custom_wiki2html_args')) > 0 ? vimwiki#vars#get_global('custom_wiki2html_args') : '-')) \ (len(vimwiki#vars#get_wikilocal('custom_wiki2html_args')) > 0 ? vimwiki#vars#get_wikilocal('custom_wiki2html_args') : '-'))
endfunction " }}} endfunction " }}}
function! s:convert_file(path_html, wikifile) "{{{ function! s:convert_file(path_html, wikifile) "{{{

View File

@ -187,6 +187,7 @@ function! s:populate_wikilocal_options()
\ 'automatic_nested_syntaxes': 1, \ 'automatic_nested_syntaxes': 1,
\ 'css_name': 'style.css', \ 'css_name': 'style.css',
\ 'custom_wiki2html': '', \ 'custom_wiki2html': '',
\ 'custom_wiki2html_args': '',
\ 'diary_header': 'Diary', \ 'diary_header': 'Diary',
\ 'diary_index': 'diary', \ 'diary_index': 'diary',
\ 'diary_rel_path': 'diary/', \ 'diary_rel_path': 'diary/',