diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-21 14:08:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-21 14:55:45 +0000 |
commit | e72bf6834446f939e60f2df6511491319eeebca6 (patch) | |
tree | 519f3a9cf7e1acbe546f2d05e79811fe5cac2614 /i18nutil | |
parent | 29a287f3e268c3380e8d9c540b8f7df0b0342e78 (diff) |
use a narrow no-break space instead of (normal) no-break space for de
Change-Id: Iae0c70ab713a0d95fa7bc447f8a79e244c5a4258
Diffstat (limited to 'i18nutil')
-rw-r--r-- | i18nutil/source/utility/unicode.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx index 0fb6b72366e0..5ef4fb54423e 100644 --- a/i18nutil/source/utility/unicode.cxx +++ b/i18nutil/source/utility/unicode.cxx @@ -956,8 +956,14 @@ OUString SAL_CALL unicode::formatPercent(double dNumber, UnicodeString output; xF->format(dNumber/100, output); - return OUString(reinterpret_cast<const sal_Unicode *>(output.getBuffer()), + OUString aRet(reinterpret_cast<const sal_Unicode *>(output.getBuffer()), output.length()); + if (rLangTag.getLanguage() == "de") + { + //narrow no-break space instead of (normal) no-break space + return aRet.replace(0x00A0, 0x202F); + } + return aRet; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |