Skip to content

Commit

Permalink
fixes #141 csv no longer removes empty values and shifts headers
Browse files Browse the repository at this point in the history
  • Loading branch information
SidOfc committed Apr 7, 2021
1 parent 99a0865 commit b04a2ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/mkdx.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1652,7 +1652,7 @@ fun! mkdx#Tableize() range
endfor

for linec in linecount
if !empty(filter(lines[linec], {idx, val -> !empty(val)}))
if !empty(filter(copy(lines[linec]), {idx, val -> !empty(val)}))
let tmp = map(range(0, len(col_idx) - 1), {idx, val -> get(lines[linec], idx, '')})
call setline(a:firstline + linec,
\ ld[1:2] . join(map(tmp, {key, val -> s:util.AlignString(val, get(col_align, get(col_idx, key, ''), 'center'), col_maxlen[key])}), ld) . ld[0:1])
Expand Down

0 comments on commit b04a2ef

Please sign in to comment.