summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-06-27 06:15:37 -0700
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-06-27 06:15:37 -0700
commit428e6d9817612c0de91a148361c34a91a15479cf (patch)
tree009bc5b22792f60e769499d57bbcf50d8db23e65
parente9d4a363d10b8d610ebb130b7972a42bade8b1f0 (diff)
downloadcmd2-git-428e6d9817612c0de91a148361c34a91a15479cf.tar.gz
Fixed table width for Mumbai
Changed to use Hindi name for Mumbai based on Google Translate instead of a Google search and the table width and underlying wide character width calculation appears to be working fine.
-rwxr-xr-xexamples/table_display.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/table_display.py b/examples/table_display.py
index e461dd47..2d562f72 100755
--- a/examples/table_display.py
+++ b/examples/table_display.py
@@ -50,14 +50,13 @@ def two_dec(num: float) -> str:
# Population data from Wikipedia: https://en.wikipedia.org/wiki/List_of_cities_proper_by_population
-
# ############ Table data formatted as an iterable of iterable fields ############
EXAMPLE_ITERABLE_DATA = [['Shanghai (上海)', 'Shanghai', 'China', 'Asia', 24183300, 6340.5],
['Beijing (北京市)', 'Hebei', 'China', 'Asia', 20794000, 1749.57],
['Karachi (کراچی)', 'Sindh', 'Pakistan', 'Asia', 14910352, 615.58],
['Shenzen (深圳市)', 'Guangdong', 'China', 'Asia', 13723000, 1493.32],
['Guangzho (广州市)', 'Guangdong', 'China', 'Asia', 13081000, 1347.81],
- ['Mumbai (बॉम्बे हिंदी)', 'Maharashtra', 'India', 'Asia', 12442373, 465.78],
+ ['Mumbai (मुंबई)', 'Maharashtra', 'India', 'Asia', 12442373, 465.78],
['Istanbul (İstanbuld)', 'Istanbul', 'Turkey', 'Eurasia', 12661000, 620.29],
]