Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-pages: concealされている文字が表示されている #1760

Closed
k-takata opened this issue Oct 21, 2024 · 4 comments · Fixed by #1761 or vim-jp/vimdoc-en#42
Closed

gh-pages: concealされている文字が表示されている #1760

k-takata opened this issue Oct 21, 2024 · 4 comments · Fixed by #1761 or vim-jp/vimdoc-en#42

Comments

@k-takata
Copy link
Member

#1434 で Vim のバージョンを 8.2.0020 から 9.1.0065 に更新したことにより、HTML に変換後のページで ~, >, < などの conceal されている文字が表示されるようになってしまっています。(vimdoc-en でも同じ問題が起きています。)

差分: vim-jp/vimdoc-ja@f500c7f

カラースキームの更新による影響かもしれません。

@h-east
Copy link
Member

h-east commented Oct 21, 2024

使用しているカラースキームのハイライト Ignore グループの guifg または ctermfg の値が NONE だと表示されてしまうようです。

@h-east
Copy link
Member

h-east commented Oct 21, 2024

カラースキームの hi Ignore の設定を無理やり上書きすることで回避できそうです。
(これがBestなsolutionかは今のところ分からない)

diff --git a/tools/makehtml.vim b/tools/makehtml.vim
index 2d3f8fb9..f3b3391c 100644
--- a/tools/makehtml.vim
+++ b/tools/makehtml.vim
@@ -24,6 +24,9 @@ function! MakeHtmlAll(...)
   let s:log = []
   call MakeTagsFile()
   echo ""
+  " Avoid problem with highlight group helpIgnore character not being removed
+  execute printf("hi Ignore guifg=#ffffff ctermfg=white")
+
   let files = split(glob('*.??[tx]'), '\n')
   for i in range(len(files))
     let file = files[i]

@k-takata
Copy link
Member Author

カラースキームの設定の上書きで行けるのならそれでよさそうな気がします。
execute と printf を使っているのは何か意味がありますか?

@h-east
Copy link
Member

h-east commented Oct 22, 2024

execute と printf を使っているのは何か意味がありますか?

あ、ないです。参考にしたコードで使われていたけど、`%~' 使ってないから不要ですね。
後で PR 出します。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants