Bug 140402 - Hyphen seperated from words at line break
Summary: Hyphen seperated from words at line break
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-14 09:23 UTC by Julius Becker
Modified: 2021-02-14 17:56 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julius Becker 2021-02-14 09:23:51 UTC
Description:
In German, we can use a hyphen to replace parts of words:
1) "be- und entladen" (instead of "beladen und entladen" [load and unload])
2) "Gesprächspartnerinnen und -partner" ("Gesprächspartnerinnen und Gesprächspartner" [female interlocutors and male interlocutors])

An the end of a line, the hyphen should not be seperated from the word. So it’s
1) "be-/line break/und " and
2) "und/line break/-partner".

But in the second case, LibreOffice Writer seperates the hyphen and "partner".

Steps to Reproduce:
1. Type a word that beginns with a hyphen (-) (like -partner)
2. Choose German as text language.
3. Add tabs or blank spaces befor the hyphen so that the line breaks. 

Actual Results:
The hyphen remains as last sign on the line, the word is on the new line. The line break is between the hyphen and the rest of the word.

Expected Results:
As the hyphen is part of the word, the line break should be before the hyphen.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.4.2 (x64)
Build ID: dcf040e67528d9187c66b2379df5ea4407429775
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded
Comment 1 Regina Henschel 2021-02-14 17:56:21 UTC
The hyphen inserted with pressing "-"key is a multipurpose hyphen and that is often typographically wrong. For your use cases you need a "non-breakable hyphen". You can get it from menu Insert > Formatting Mark or easier with key-combination Ctrl+Shift+-.