diff --git a/share/tools/create_manpage_completions.py b/share/tools/create_manpage_completions.py index 838c8a94d..4548dd1d2 100755 --- a/share/tools/create_manpage_completions.py +++ b/share/tools/create_manpage_completions.py @@ -135,7 +135,8 @@ def built_command(options, description): if IS_PY3: truncation_suffix = '… [See Man Page]' else: - truncation_suffix = u'… [See Man Page]' + ELLIPSIS_CODE_POINT = 0x2026 + truncation_suffix = unichr(ELLIPSIS_CODE_POINT) + unicode(' [See Man Page]') # Try to include as many whole sentences as will fit # Clean up some probably bogus escapes in the process