Skip to content

Commit 5d864b6

Browse files
vvizzovim-scripts
authored andcommitted
Version 1.4
- FIX: Vst link broken - FIX: & in URLs double encoded - FIX: broken chained links with uppercase letters
1 parent 8540c49 commit 5d864b6

3 files changed

Lines changed: 16 additions & 43 deletions

File tree

autoload/vst/vst.vim

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
" Vim reStructured Text
22
" (c) Mikolaj Machowski 2006
33
" Author: Mikolaj Machowski ( mikmach AT wp DOT pl )
4-
" Last Change: 31 Oct 2006
5-
" Version: 1.3
4+
" Last Change: 4 Nov 2006
5+
" Version: 1.4
66
" License:
77
" Copyright (C) 2006 Mikolaj Machowski <[email protected]>
88
"
@@ -37,7 +37,7 @@ scriptencoding iso-8859-2
3737
" Initiate some variables. Not really necessary but makes possible to use
3838
" command line completion when doing temporary modifications.
3939
" VST version (for debugging:
40-
let s:vst_ver = '130'
40+
let s:vst_ver = '140'
4141
" Write export immediately
4242
if !exists("g:vst_write_export")
4343
let g:vst_write_export = 0
@@ -2717,7 +2717,7 @@ function! VST_DictTable(db, key, value, sort)
27172717
if valmargin - strlen(key) < 1
27182718
let table .= key."\n".repeat(' ', valmargin).substitute(dict[key], '\n', ' ', 'g')."\n"
27192719
else
2720-
let table .= key.repeat(' ', itemmargin).substitute(dict[key], '\n', ' ', 'g')."\n"
2720+
let table .= key.repeat(' ', valmargin - strlen(key)).substitute(dict[key], '\n', ' ', 'g')."\n"
27212721
endif
27222722
endif
27232723
endfor
@@ -2727,7 +2727,7 @@ function! VST_DictTable(db, key, value, sort)
27272727
if valmargin - strlen(key) < 1
27282728
let table .= key."\n".repeat(' ', valmargin).substitute(dict[key], '\n', ' ', 'g')."\n"
27292729
else
2730-
let table .= key.repeat(' ', itemmargin).substitute(dict[key], '\n', ' ', 'g')."\n"
2730+
let table .= key.repeat(' ', valmargin - strlen(key)).substitute(dict[key], '\n', ' ', 'g')."\n"
27312731
endif
27322732
endif
27332733
endfor
@@ -3330,7 +3330,7 @@ function! VST_Hyperlink(text)
33303330
while href =~ '_\s*$'
33313331
" If ends in _ it is probably indirect link, process it
33323332
" We need to remove _ from the end to get proper key name.
3333-
let shref = matchstr(href, '^\s*\(`\?\)\zs.*\ze\1_\s*$')
3333+
let shref = tolower(matchstr(href, '^\s*\(`\?\)\zs.*\ze\1_\s*$'))
33343334
if has_key(g:vst_hlinkdb, shref) && g:vst_hlinkdb[shref] != ''
33353335
let href = escape(g:vst_hlinkdb[shref], '&\~')
33363336
else
@@ -4426,9 +4426,6 @@ endfunction
44264426
return out
44274427
endfunc " }}}
44284428
let uri = a:uri
4429-
if uri =~ '&'
4430-
let uri = substitute(uri, '&', '&amp;', 'g')
4431-
endif
44324429
if uri =~ '^#'
44334430
return uri
44344431
endif

doc2/vst.txt

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Vim reStructured Text
44
:Author: Mikolaj Machowski
55
:Title: Vim reStructured Text - HTML and LaTeX output
66
:Keywords: Vim, LaTeX, PDF, HTML, XML
7-
:Version: 1.3
7+
:Version: 1.4
88
:License: GPL v. 2
9-
:Date: 31 Oct 2006
9+
:Date: 4 Nov 2006
1010

1111
For a long time Vim_ users were asking for "real" export to HTML. This is,
1212
I believe, first real try to achieve this effect. This is Vim version of
@@ -2502,7 +2502,7 @@ It will be inserted before declaration of extension of preamble by `external
25022502
file`__. If user wants to declare there these new commands he should
25032503
use ``renewcommand`` LaTeX command.
25042504

2505-
__ lvtp_
2505+
__ vtp_
25062506

25072507
Compound
25082508
~~~~~~~~
@@ -2949,36 +2949,12 @@ Full ChangeLog is here: `vst-changelog`_.
29492949

29502950
Changes from last announcement:
29512951

2952-
- 13 Oct 2006 - **1.2** announcement
2952+
- 31 Oct 2006 - **1.3** announcement
2953+
2954+
- FIX: Vst link broken
2955+
- FIX: & in URLs double encoded
2956+
- FIX: broken chained links with uppercase letters
29532957

2954-
- ADD: show number of directive line and percentage position in file for
2955-
easier navigation when folding by directive
2956-
- ADD: proper encryption of URIs (amp, percentage)
2957-
- ADD: make preproc auxiliary command recursive
2958-
- ADD: fold according to level of headers: fold1, fold2, etc.
2959-
- ADD: recursive folding: foldr
2960-
- ADD: [LaTeX] containers as ghost commands
2961-
- ADD: [LaTeX] Generator line (debug purposes)
2962-
- CHG: make folding by directive more flexible
2963-
- CHG: improve layout of fold texts with centered titles
2964-
- CHG: improve layout of text table of contents with centered titles
2965-
- CHG: level of recursiveness is now &maxfuncdepth/2 (50 should be enough
2966-
for everybody!)
2967-
- CHG: [HTML] when source are lists starting from no-one use transitional
2968-
doctype, otherwise strict
2969-
- CHG: [HTML] "Downgrade" to HTML 4.01 (no sense to use XHTML doctype when
2970-
using content text/html)
2971-
- FIX: length of ornaments inserted with <C-B>o
2972-
- FIX: show output of auxiliary commands depending on table
2973-
- FIX: presence of apostrophes in section titles could cause problems in folding
2974-
- FIX: internal links in fancy formatted text could be broken
2975-
- FIX: unnecessary creation of targets from links broken in several lines
2976-
- FIX: minor fixes in docs
2977-
- FIX: optimizations, 10-15% speed gains
2978-
- FIX: [LaTeX] too much whitespace at the end of footnotes
2979-
- FIX: [LaTeX] internal links work again
2980-
- FIX: [S5] uploaded CSS files for web page to make presentation work (sorry
2981-
George!)
29822958

29832959
- REMEMBER ABOUT UPDATING DOCS
29842960

plugin/vstplugin.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
" Vim reStructured Text
22
" (c) Mikolaj Machowski 2006
33
" Author: Mikolaj Machowski ( mikmach AT wp DOT pl )
4-
" Last Change: 31 Oct 2006
5-
" Version: 1.3
4+
" Last Change: 4 Nov 2006
5+
" Version: 1.4
66
" License:
77
" Copyright (C) 2006 Mikolaj Machowski <[email protected]>
88
"

0 commit comments

Comments
 (0)