Fix table alignment when heading begins with t.
Due to a typo (`t` instead of `\t`) we were center aligning column headings that begin with a lowercase t! Closes #6153.
This commit is contained in:
parent
984a82a9b8
commit
2c09b15b8d
1 changed files with 1 additions and 1 deletions
|
@ -1183,7 +1183,7 @@ alignType strLst len =
|
|||
let nonempties = filter (not . T.null) $ map trimr strLst
|
||||
(leftSpace, rightSpace) =
|
||||
case sortOn T.length nonempties of
|
||||
(x:_) -> (T.head x `elem` [' ', 't'], T.length x < len)
|
||||
(x:_) -> (T.head x `elem` [' ', '\t'], T.length x < len)
|
||||
[] -> (False, False)
|
||||
in case (leftSpace, rightSpace) of
|
||||
(True, False) -> AlignRight
|
||||
|
|
Loading…
Add table
Reference in a new issue