Allow having no tab separator

Fixes #2761
This commit is contained in:
Kovid Goyal
2020-06-13 12:33:15 +05:30
parent 1a042c873c
commit 97c3061b8f

View File

@@ -798,6 +798,8 @@ def tab_separator(x: str) -> str:
for q in '\'"':
if x.startswith(q) and x.endswith(q):
x = x[1:-1]
if not x:
return ''
break
if not x.strip():
x = ('\xa0' * len(x)) if x else default_tab_separator