From f21245a84358be79c999be14894bc068059ff860 Mon Sep 17 00:00:00 2001 From: Tinmarino Date: Fri, 24 Jul 2020 00:14:28 -0400 Subject: [PATCH] Fix: html conversion error from markdown (#951) From last html conversion refactoring --- autoload/vimwiki/html.vim | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/autoload/vimwiki/html.vim b/autoload/vimwiki/html.vim index 9e48eb0..6dbd260 100644 --- 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