Fix: Vimwiki2HTMLBrowse broken when using a custom converter (Issue #992)

This commit is contained in:
Tinmarino 2020-08-22 12:40:54 -04:00
parent a51052cbe6
commit d1b3fe34c9
2 changed files with 4 additions and 4 deletions

View File

@ -1790,16 +1790,16 @@ function! s:convert_file(path_html, wikifile) abort
let done = 0
let wikifile = fnamemodify(a:wikifile, ':p')
let path_html = expand(a:path_html).vimwiki#vars#get_bufferlocal('subdir')
let htmlfile = fnamemodify(wikifile, ':t:r').'.html'
if s:use_custom_wiki2html()
let force = 1
call vimwiki#html#CustomWiki2HTML(path_html, wikifile, force)
let done = 1
return ''
return path_html . htmlfile
endif
if s:syntax_supported() && done == 0
let htmlfile = fnamemodify(wikifile, ':t:r').'.html'
let html_lines = s:convert_file_to_lines_template(wikifile, path_html . htmlfile)
if html_lines == []
return ''

View File

@ -158,7 +158,7 @@ setlocal formatoptions-=r
setlocal formatoptions-=o
setlocal formatoptions-=2
setlocal formatoptions+=n
" Used to join blockquotes (see: #915)
" Used to join 'commented' lines (blockquote, list) (see: #915)
if v:version > 703
setlocal formatoptions+=j
endif