Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bug fix: Make 2html ignore text folding!

  • Loading branch information...
commit 892be723e17dbfd21bec0d72d600519e26e0f6c1 1 parent be773a1
Peter Odding authored June 20, 2010

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  autoload.vim
5  autoload.vim
@@ -230,12 +230,17 @@ function! publish#prep_env(enable) " {{{1
230 230
   " anchors which are used as the targets of hyperlinks created from tags.
231 231
   " Also instruct the 2html script to use CSS which we will modify to improve
232 232
   " the appearance of hyperlinks (so they inherit the highlighting color).
  233
+  " Finally ignore any text folding until I find out how to get the dynamic
  234
+  " JavaScript text folding to work.
233 235
   if a:enable
  236
+    let s:hif_save = exists('g:html_ignore_folding') ? g:html_ignore_folding : 0
234 237
     let s:hnl_save = exists('g:html_number_lines') ? g:html_number_lines : 0
235 238
     let s:huc_save = exists('g:html_use_css') ? g:html_use_css : 0
  239
+    let g:html_ignore_folding = 1
236 240
     let g:html_number_lines =  1
237 241
     let g:html_use_css = 1
238 242
   else
  243
+    let g:html_ignore_folding = s:hif_save
239 244
     let g:html_number_lines =  s:hnl_save
240 245
     let g:html_use_css =  s:huc_save
241 246
   endif

0 notes on commit 892be72

Please sign in to comment.
Something went wrong with that request. Please try again.