Pretty: Delete trailing space

This commit is contained in:
Tinmarino
2021-06-10 17:17:57 -04:00
parent 4cc6edf3eb
commit 7eb6fed581
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -125,7 +125,7 @@ function! s:template_full_name(name) abort
" Suffix Path by a / is not " Suffix Path by a / is not
let path = vimwiki#vars#get_wikilocal('template_path') let path = vimwiki#vars#get_wikilocal('template_path')
if strridx(path, '/') +1 != len(path) if strridx(path, '/') +1 != len(path)
let path .= '/' let path .= '/'
endif endif
@@ -1708,7 +1708,7 @@ function! vimwiki#html#CustomWiki2HTML(root_path, path, wikifile, force) abort
\ (len(vimwiki#vars#get_bufferlocal('subdir')) > 0 ? \ (len(vimwiki#vars#get_bufferlocal('subdir')) > 0 ?
\ s:shellescape(s:root_path(vimwiki#vars#get_bufferlocal('subdir'))) : '-'). ' '. \ s:shellescape(s:root_path(vimwiki#vars#get_bufferlocal('subdir'))) : '-'). ' '.
\ (len(vimwiki#vars#get_wikilocal('custom_wiki2html_args')) > 0 ? \ (len(vimwiki#vars#get_wikilocal('custom_wiki2html_args')) > 0 ?
\ vimwiki#vars#get_wikilocal('custom_wiki2html_args') : '-')) \ vimwiki#vars#get_wikilocal('custom_wiki2html_args') : '-'))
" Print if non void " Print if non void
if output !~? '^\s*$' if output !~? '^\s*$'
call vimwiki#u#echo(string(output)) call vimwiki#u#echo(string(output))
+2 -2
View File
@@ -1117,7 +1117,7 @@ function! s:remove_done_in_list(item, recursive) abort
if a:item.type == 0 if a:item.type == 0
return return
endif endif
" Recurse self on list item " Recurse self on list item
let first_item = s:get_first_item_in_list(a:item, 0) let first_item = s:get_first_item_in_list(a:item, 0)
let total_lines_removed = 0 let total_lines_removed = 0
@@ -1183,7 +1183,7 @@ function! vimwiki#lst#remove_done_in_range(first_line, last_line) abort
endif endif
let cur_ln = s:get_next_line(cur_ln) let cur_ln = s:get_next_line(cur_ln)
endwhile endwhile
" Update all parent state (percentage of done) " Update all parent state (percentage of done)
for parent_item in parent_items_of_lines for parent_item in parent_items_of_lines
call s:update_state(parent_item) call s:update_state(parent_item)
+4 -4
View File
@@ -213,9 +213,9 @@ function! s:internal_global_settings() abort
" Know internal schemes " Know internal schemes
let g:vimwiki_global_vars.schemes_web = let g:vimwiki_global_vars.schemes_web =
\ join(vimwiki#vars#get_global('schemes_web'), '\|') \ join(vimwiki#vars#get_global('schemes_web'), '\|')
let g:vimwiki_global_vars.schemes_any = let g:vimwiki_global_vars.schemes_any =
\ join(vimwiki#vars#get_global('schemes_any'), '\|') \ join(vimwiki#vars#get_global('schemes_any'), '\|')
let g:vimwiki_global_vars.schemes_local = let g:vimwiki_global_vars.schemes_local =
\ join(['wiki\d\+', 'diary', 'local'], '\|') \ join(['wiki\d\+', 'diary', 'local'], '\|')
@@ -463,8 +463,8 @@ function! s:get_default_wikilocal() abort
" Must be coherent with VimwikiColorize " Must be coherent with VimwikiColorize
let fg = 'color\s*:\s*__COLORFG__\s*;\s*' let fg = 'color\s*:\s*__COLORFG__\s*;\s*'
let bg = 'background\s*:\s*__COLORBG__\s*;\s*' let bg = 'background\s*:\s*__COLORBG__\s*;\s*'
let color_tag_rx = '<span \s*style\s*=\s*"\s*\(' let color_tag_rx = '<span \s*style\s*=\s*"\s*\('
\ . fg . bg . '\|' . fg . '\|' . bg \ . fg . bg . '\|' . fg . '\|' . bg
\ . '\)"\s*>__CONTENT__<\/span>' \ . '\)"\s*>__CONTENT__<\/span>'
return { return {
\ 'auto_diary_index': {'type': type(0), 'default': 0, 'min': 0, 'max': 1}, \ 'auto_diary_index': {'type': type(0), 'default': 0, 'min': 0, 'max': 1},
+1 -1
View File
@@ -558,7 +558,7 @@ if str2nr(vimwiki#vars#get_global('key_mappings').lists)
inoremap <expr><silent><buffer> <S-CR> pumvisible() ? '<CR>' : '<Esc>:VimwikiReturn 2 2<CR>' inoremap <expr><silent><buffer> <S-CR> pumvisible() ? '<CR>' : '<Esc>:VimwikiReturn 2 2<CR>'
endif endif
endif endif
" change symbol for bulleted lists " change symbol for bulleted lists
for s:char in vimwiki#vars#get_syntaxlocal('bullet_types') for s:char in vimwiki#vars#get_syntaxlocal('bullet_types')
if !hasmapto(':VimwikiChangeSymbolTo '.s:char.'<CR>') if !hasmapto(':VimwikiChangeSymbolTo '.s:char.'<CR>')
+2 -2
View File
@@ -152,7 +152,7 @@ call s:add_target_syntax_ON(s:target, 'VimwikiLink')
" Header Level: 1..6 " Header Level: 1..6
for s:i in range(1,6) for s:i in range(1,6)
" WebLink are for markdown but putting them here avoidcode duplication " WebLink are for markdown but putting them here avoidcode duplication
" -- and syntax folding Issue #1009 " -- and syntax folding Issue #1009
execute 'syntax match VimwikiHeader'.s:i execute 'syntax match VimwikiHeader'.s:i
\ . ' /'.vimwiki#vars#get_syntaxlocal('rxH'.s:i, s:current_syntax) \ . ' /'.vimwiki#vars#get_syntaxlocal('rxH'.s:i, s:current_syntax)
@@ -283,7 +283,7 @@ syntax match VimwikiPlaceholderParam /.*/ contained
if vimwiki#vars#get_global('valid_html_tags') !=? '' if vimwiki#vars#get_global('valid_html_tags') !=? ''
let s:html_tags = join(split(vimwiki#vars#get_global('valid_html_tags'), '\s*,\s*'), '\|') let s:html_tags = join(split(vimwiki#vars#get_global('valid_html_tags'), '\s*,\s*'), '\|')
exe 'syntax match VimwikiHTMLtag #\c</\?\%('.s:html_tags.'\)\%(\s\{-1}\S\{-}\)\{-}\s*/\?>#' exe 'syntax match VimwikiHTMLtag #\c</\?\%('.s:html_tags.'\)\%(\s\{-1}\S\{-}\)\{-}\s*/\?>#'
" Html Typeface: <b>bold text</b> " Html Typeface: <b>bold text</b>
let html_typeface = { let html_typeface = {
\ 'bold': [['<b>', '</b\_s*>'], ['<strong>', '</strong\_s*>']], \ 'bold': [['<b>', '</b\_s*>'], ['<strong>', '</strong\_s*>']],
+1 -1
View File
@@ -230,7 +230,7 @@ Do (Go):
Expect (Introduce new Number todo item): Expect (Introduce new Number todo item):
1. [ ] Chap1 1. [ ] Chap1
2. [ ] Chap2 2. [ ] Chap2
3. [ ] 3. [ ]
Do (New item and ident): Do (New item and ident):
o\<C-t>Chap1.1 o\<C-t>Chap1.1