summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2013-10-16 09:29:56 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-10-17 15:50:11 +0000
commit3dac8f65123aa6046e0e94c98faf0e9708a8cc98 (patch)
tree040ff5b416615578c9ce16340bef0b80b9f76a08
parente09cfff67b021efd04235987f9c27cea3da5c72b (diff)
fdo#69548 do not remove last space from hyperlink target
Change-Id: Ia56a4012590cc56b3beaa887cbbb91318a0977b1 Reviewed-on: https://gerrit.libreoffice.org/6263 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--writerfilter/source/dmapper/DomainMapper_Impl.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 5bd4e622e68b..45cc5fe10a0c 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -2155,14 +2155,10 @@ void FieldContext::AppendCommand(const OUString& rPart)
if (bInString)
{
- if (bInStringNext)
- {
- sPart += OUString(' ');
- sPart += sToken;
- }
- else
+ sPart += OUString(' ');
+ sPart += sToken;
+ if (!bInStringNext)
{
- sPart += sToken;
aResult.push_back(sPart);
}
}