diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-06-30 11:51:52 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-06-30 11:51:52 -0700 |
commit | 9e458d7974a099de59a53f8d4e6435b0f76ba774 (patch) | |
tree | f28b9741dcf1b5cc7799911e38c66f9a6373e605 /src | |
parent | 9d5230c0f699b1cc575eb211df9f016c41b6ba11 (diff) | |
download | pandoc-9e458d7974a099de59a53f8d4e6435b0f76ba774.tar.gz |
Pretty: Added wide punctuation range to charWidth.
Fixes bug with Chinese commas in tables.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Pretty.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Pretty.hs b/src/Text/Pandoc/Pretty.hs index bf78b2594..0372dbe5d 100644 --- a/src/Text/Pandoc/Pretty.hs +++ b/src/Text/Pandoc/Pretty.hs @@ -510,7 +510,9 @@ charWidth c = | c >= '\xFE10' && c <= '\xFE19' -> 2 | c >= '\xFE20' && c <= '\xFE26' -> 1 | c >= '\xFE30' && c <= '\xFE6B' -> 2 - | c >= '\xFE70' && c <= '\x16A38' -> 1 + | c >= '\xFE70' && c <= '\xFEFF' -> 1 + | c >= '\xFF01' && c <= '\xFF60' -> 2 + | c >= '\xFF61' && c <= '\x16A38' -> 1 | c >= '\x1B000' && c <= '\x1B001' -> 2 | c >= '\x1D000' && c <= '\x1F1FF' -> 1 | c >= '\x1F200' && c <= '\x1F251' -> 2 |