From 65c4ffaccac9516182bdf9b64dbd67d2799520f8 Mon Sep 17 00:00:00 2001 From: Petrus Date: Fri, 13 Apr 2018 17:03:21 +0800 Subject: [PATCH] fix missing custom_wiki2html_args default key Ref #475 --- autoload/vimwiki/html.vim | 2 +- autoload/vimwiki/vars.vim | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/vimwiki/html.vim b/autoload/vimwiki/html.vim index 11261c7..9d0440b 100644 --- a/autoload/vimwiki/html.vim +++ b/autoload/vimwiki/html.vim @@ -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_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_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 " }}} function! s:convert_file(path_html, wikifile) "{{{ diff --git a/autoload/vimwiki/vars.vim b/autoload/vimwiki/vars.vim index b1836a2..3efd8c6 100644 --- a/autoload/vimwiki/vars.vim +++ b/autoload/vimwiki/vars.vim @@ -187,6 +187,7 @@ function! s:populate_wikilocal_options() \ 'automatic_nested_syntaxes': 1, \ 'css_name': 'style.css', \ 'custom_wiki2html': '', + \ 'custom_wiki2html_args': '', \ 'diary_header': 'Diary', \ 'diary_index': 'diary', \ 'diary_rel_path': 'diary/',