Refactor: Vars: Make vimwiki_list_ignore_newline wiki local (Issue #894)

Also: vimwiki_text_ignore_newline
This commit is contained in:
Tinmarino
2020-07-30 15:49:38 -04:00
parent 787e95b910
commit 97e02897f4
3 changed files with 61 additions and 67 deletions

View File

@ -1037,7 +1037,7 @@ function! s:process_tag_list(line, lists) abort
call add(lines, substitute(a:line, lstRegExp.'\%('.checkbox.'\)\?', '', ''))
let processed = 1
elseif in_list && a:line =~# '^\s\+\S\+'
if vimwiki#vars#get_global('list_ignore_newline')
if vimwiki#vars#get_wikilocal('list_ignore_newline')
call add(lines, a:line)
else
call add(lines, '<br />'.a:line)
@ -1085,7 +1085,7 @@ function! s:process_tag_para(line, para) abort
let para = 1
endif
let processed = 1
if vimwiki#vars#get_global('text_ignore_newline')
if vimwiki#vars#get_wikilocal('text_ignore_newline')
call add(lines, a:line)
else
call add(lines, a:line.'<br />')