From 8c018910ae4d8701b1ce2a95727b9baed4016da3 Mon Sep 17 00:00:00 2001 From: László Németh Date: Thu, 26 May 2022 09:09:38 +0200 Subject: tdf#149248 sw offapi xmloff: add option to not hyphenate last word MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add option to disable automatic hyphenation of the last word of paragraphs for better typography. Note: the same option used e.g. in Adobe InDesign, and a similar one in CSS Text Module Level 4 (hyphenate-limit-last). * Add checkbox to Text Flow in paragraph dialog * Store property in paragraph model (com::sun::star::style::ParagraphProperties::ParaHyphenationNoLastWord) * Add ODF import/export * Add ODF unit test * Add layout test Follow-up to commit 72bd0df107ee47c4d54fa88b4960d32ea03e9f69 "tdf#121658 Add option to not hyphenate words in CAPS". Change-Id: Ida29c65b5a7cbfd7c399c342781531a6fb86f639 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134985 Tested-by: Jenkins Reviewed-by: László Németh --- xmloff/source/token/tokens.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'xmloff/source/token') diff --git a/xmloff/source/token/tokens.txt b/xmloff/source/token/tokens.txt index 04b8b62de5d3..cc365e61d3a0 100644 --- a/xmloff/source/token/tokens.txt +++ b/xmloff/source/token/tokens.txt @@ -964,6 +964,7 @@ hyphenation-ladder-count hyphenation-push-char-count hyphenation-remain-char-count hyphenation-no-caps +hyphenation-no-last-word i icon icon-set -- cgit