mirror of
https://github.com/jgm/pandoc.git
synced 2026-10-30 18:24:28 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user