diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-11-13 17:26:20 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-11-13 17:39:32 +0100 |
commit | 126df1eee630d357443c52e08dd1712c5a1f3234 (patch) | |
tree | df91299d16eede3d54148bfcfcc0db97ee026158 /sw/qa/complex | |
parent | 57972554b58a680f47a05f4d6711c99106f80523 (diff) |
sw: solve the CheckBookmarks fails on WNT mystery
After many years of careful investigation, we finally managed to solve
the mystery: it turns out that Windows has different line endings than
UNIX, which results in different hash values starting at m_nLinebreakHash.
Change-Id: Ib5fab7cd43ad10ea9a33c29857c5b53c84e623fb
Diffstat (limited to 'sw/qa/complex')
-rw-r--r-- | sw/qa/complex/writer/CheckBookmarks.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/qa/complex/writer/CheckBookmarks.java b/sw/qa/complex/writer/CheckBookmarks.java index a5e1a9ed138b..9acb16aadbc6 100644 --- a/sw/qa/complex/writer/CheckBookmarks.java +++ b/sw/qa/complex/writer/CheckBookmarks.java @@ -72,7 +72,7 @@ class BookmarkHashes { xBookmark); buffer.append(sBookmarkname); buffer.append(':'); - buffer.append(xBookmarkAsContent.getAnchor().getString()); + buffer.append(xBookmarkAsContent.getAnchor().getString().replaceAll("\r\n", "\n")); buffer.append(';'); } java.security.MessageDigest sha1 = java.security.MessageDigest.getInstance("SHA-1"); |