From 63419d6513fd10b42ad1fcc1ed80ca8c8c1508ec Mon Sep 17 00:00:00 2001 From: Wu Tingfeng Date: Sun, 20 Aug 2023 22:39:46 +0800 Subject: [PATCH] Replace Unicode dashes with ASCII ones (#722) --- sources_non_forked/ale/ale_linters/eruby/erb.vim | 4 ++-- sources_non_forked/vim-snippets/UltiSnips/rst.snippets | 2 +- sources_non_forked/vim-surround/README.markdown | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sources_non_forked/ale/ale_linters/eruby/erb.vim b/sources_non_forked/ale/ale_linters/eruby/erb.vim index 0ca157aa..eaaec577 100644 --- a/sources_non_forked/ale/ale_linters/eruby/erb.vim +++ b/sources_non_forked/ale/ale_linters/eruby/erb.vim @@ -10,8 +10,8 @@ function! ale_linters#eruby#erb#GetCommand(buffer) abort " Rails-flavored eRuby does not comply with the standard as understood by " ERB, so we'll have to do some substitution. This does not reduce the - " effectiveness of the linter—the translated code is still evaluated. - return 'ruby -r erb -e ' . ale#Escape('puts ERB.new($stdin.read.gsub(%{<%=},%{<%}), trim_mode: %{-}).src') . '< %t | ruby -c' + " effectiveness of the linter-the translated code is still evaluated. + return 'ruby -r erb -e ' . ale#Escape('puts ERB.new($stdin.read.gsub(%{<%=},%{<%}), nil, %{-}).src') . '< %t | ruby -c' endfunction call ale#linter#Define('eruby', { diff --git a/sources_non_forked/vim-snippets/UltiSnips/rst.snippets b/sources_non_forked/vim-snippets/UltiSnips/rst.snippets index 6e31e616..da9bc75e 100644 --- a/sources_non_forked/vim-snippets/UltiSnips/rst.snippets +++ b/sources_non_forked/vim-snippets/UltiSnips/rst.snippets @@ -285,7 +285,7 @@ snippet fnt "Footnote or Citation" i .. [$1] ${2:Reference} endsnippet -# Only for Nikola — Static Site Generator +# Only for Nikola - Static Site Generator snippet chart "Pygal chart for Nikola" b .. chart:: $1`!p snip.rv=complete(t[1], CHART_TYPES)` :title: '${2:Browser usage evolution (in %)}' diff --git a/sources_non_forked/vim-surround/README.markdown b/sources_non_forked/vim-surround/README.markdown index d2a5c298..3deb96a5 100644 --- a/sources_non_forked/vim-surround/README.markdown +++ b/sources_non_forked/vim-surround/README.markdown @@ -74,7 +74,7 @@ support: > How do I surround without adding a space? -Only the opening brackets—`[`, `{`, and `(`—add a space. Use a closing +Only the opening brackets (`[`, `{`, and `(`) add a space. Use a closing bracket, or the `b` (`(`) and `B` (`{`) aliases. ## Contributing