tdf#152952 sw: don't hyphenate URLs by default
commitad19098226d4eb4899572b79564d3ff95290e7aa
authorMichael Stahl <michael.stahl@allotropia.de>
Thu, 12 Jan 2023 13:24:11 +0000 (12 14:24 +0100)
committerAndras Timar <andras.timar@collabora.com>
Mon, 23 Jan 2023 08:41:33 +0000 (23 09:41 +0100)
tree5886be09ae99046206d9c13bdabacabc35171810
parent08165f6a3de1bad7210a10704e2573e1a1f48abf
tdf#152952 sw: don't hyphenate URLs by default

New compatibility flag HyphenateURLs, disabled by default for Word
interop and enabled for old ODT documents.

Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145415
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
(cherry picked from commit de2b1a3a22a0a3bf5dfdd44c57c09e1fd0ba39d2)

CppunitTest_sw_layoutwriter2: fix testTdf152952_compat with en-only hyph dict
The bugdoc had German text, but the test was only checking for an English
hyphenation dictionary, so adapt the bugdoc.
Also, now that the text is English, it's hyphenated a little bit
differently, so adapt the asserts. The point is that it's still
hyphenated.
(cherry picked from commit cb3027f90fc7bc1de9eb7cf200b17da49ca064d5)

Change-Id: I1496819599deb5ed0fd736698d269ab9a22167fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145438
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
sw/inc/IDocumentSettingAccess.hxx
sw/qa/extras/layout/data/Hyphenated-link.fodt [new file with mode: 0644]
sw/qa/extras/layout/data/Hyphenated-link.rtf [new file with mode: 0644]
sw/qa/extras/layout/layout2.cxx
sw/source/core/doc/DocumentSettingManager.cxx
sw/source/core/inc/DocumentSettingManager.hxx
sw/source/core/text/guess.cxx
sw/source/filter/ww8/ww8par.cxx
sw/source/filter/xml/xmlimp.cxx
sw/source/uibase/uno/SwXDocumentSettings.cxx
writerfilter/source/filter/WriterFilter.cxx