~dricottone/vim-markdown-preview

c1a6db11352d2e248c1d5c6bf6406e6c566b24a7 — JamshedVesuna 9 years ago 538ea4f
Handle space in filepath names; Fixes #19
1 files changed, 4 insertions(+), 4 deletions(-)

M plugin/vim-markdown-preview.vim
M plugin/vim-markdown-preview.vim => plugin/vim-markdown-preview.vim +4 -4
@@ 30,9 30,9 @@ function! Vim_Markdown_Preview()
  let curr_file = expand('%:p')

  if b:vim_markdown_preview_github == 1
    call system('grip ' . curr_file . ' --export /tmp/vim-markdown-preview.html')
    call system('grip "' . curr_file . '" --export /tmp/vim-markdown-preview.html')
  else
    call system('markdown ' . curr_file . ' > /tmp/vim-markdown-preview.html')
    call system('markdown "' . curr_file . '" > /tmp/vim-markdown-preview.html')
  endif

  if OSNAME == 'unix'


@@ 78,9 78,9 @@ function! Vim_Markdown_Preview_Local()
  let curr_file = expand('%:p')

  if b:vim_markdown_preview_github == 1
    call system('grip ' . curr_file . ' --export ' . curr_file . '.html')
    call system('grip "' . curr_file . '" --export ' . curr_file . '.html')
  else
    call system('markdown ' . curr_file . ' > ' . curr_file . '.html')
    call system('markdown "' . curr_file . '" > ' . curr_file . '.html')

  endif