Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug fix: Make 2html ignore text folding!

  • Loading branch information...
commit 892be723e17dbfd21bec0d72d600519e26e0f6c1 1 parent be773a1
Peter Odding authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 autoload.vim
5 autoload.vim
View
@@ -230,12 +230,17 @@ function! publish#prep_env(enable) " {{{1
" anchors which are used as the targets of hyperlinks created from tags.
" Also instruct the 2html script to use CSS which we will modify to improve
" the appearance of hyperlinks (so they inherit the highlighting color).
+ " Finally ignore any text folding until I find out how to get the dynamic
+ " JavaScript text folding to work.
if a:enable
+ let s:hif_save = exists('g:html_ignore_folding') ? g:html_ignore_folding : 0
let s:hnl_save = exists('g:html_number_lines') ? g:html_number_lines : 0
let s:huc_save = exists('g:html_use_css') ? g:html_use_css : 0
+ let g:html_ignore_folding = 1
let g:html_number_lines = 1
let g:html_use_css = 1
else
+ let g:html_ignore_folding = s:hif_save
let g:html_number_lines = s:hnl_save
let g:html_use_css = s:huc_save
endif
Please sign in to comment.
Something went wrong with that request. Please try again.