commit f21245a84358be79c999be14894bc068059ff860
parent ca84701c836aeb95791e14eb7e5c15648456e8d7
Author: Tinmarino <tinmarino@gmail.com>
Date: Fri, 24 Jul 2020 00:14:28 -0400
Fix: html conversion error from markdown (#951)
From last html conversion refactoring
Diffstat:
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/autoload/vimwiki/html.vim b/autoload/vimwiki/html.vim
@@ -1721,6 +1721,7 @@ function! s:convert_file(path_html, wikifile) abort
let force = 1
call vimwiki#html#CustomWiki2HTML(path_html, wikifile, force)
let done = 1
+ return ''
endif
if s:syntax_supported() && done == 0
@@ -1731,15 +1732,11 @@ function! s:convert_file(path_html, wikifile) abort
endif
call vimwiki#path#mkdir(path_html)
call writefile(html_lines, path_html.htmlfile)
- let done = 1
+ return path_html.htmlfile
endif
- if done == 0
- echomsg 'Vimwiki Error: Conversion to HTML is not supported for this syntax'
- return ''
- endif
-
- return path_html.htmlfile
+ echomsg 'Vimwiki Error: Conversion to HTML is not supported for this syntax'
+ return ''
endfunction