Skip to content

Commit 4bf3998

Browse files
committed
fix issue #46
1 parent 7153192 commit 4bf3998

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/makehtml.vim

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ function! s:MakeLink(lang, hlname, tagname)
156156
else
157157
let res = printf('<a class="%s" href="%s">%s%s%s</a>', s:attr_save[a:hlname], href, sep, a:tagname, sep)
158158
endif
159+
elseif has_key(tags, ":" . tagname)
160+
let href = tags[":" . tagname]["html"]
161+
let href .= '#:' . tagname
162+
if a:hlname == "helpHyperTextEntry"
163+
let res = printf('<a class="%s" href="%s" name="%s">%s%s%s</a>', s:attr_save[a:hlname], href, a:tagname, sep, a:tagname, sep)
164+
else
165+
let res = printf('<a class="%s" href="%s">%s%s%s</a>', s:attr_save[a:hlname], href, sep, a:tagname, sep)
166+
endif
159167
else
160168
" missing tag or not translated or typo. use English if possible.
161169
call s:Log("%s: tag error: %s", bufname("%"), tagname)

0 commit comments

Comments
 (0)