git.iko.soy/typeable/pandoc
on master help sign in
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.

commit2c09b15b8dc421c444f732a7b1fbe9f67f80de45 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 21 Feb 2020, 08:06 (7 years ago) parent984a82a
1 file changed+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -1183,7 +1183,7 @@ alignType strLst len =
11831183 let nonempties = filter (not . T.null) $ map trimr strLst
11841184 (leftSpace, rightSpace) =
11851185 case sortOn T.length nonempties of
1186− (x:_) -> (T.head x `elem` [' ', 't'], T.length x < len)
1186+ (x:_) -> (T.head x `elem` [' ', '\t'], T.length x < len)
11871187 [] -> (False, False)
11881188 in case (leftSpace, rightSpace) of
11891189 (True, False) -> AlignRight