Bug 104683 - Show nonprinting characters: show spaces at the end of the line before break line for justified
Summary: Show nonprinting characters: show spaces at the end of the line before break ...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.4.3 release
Hardware: All All
: medium enhancement
Assignee: Attila Szűcs
URL:
Whiteboard: target:7.5.0
Keywords:
: 119363 (view as bug list)
Depends on:
Blocks: Formatting-Mark
  Show dependency treegraph
 
Reported: 2016-12-14 17:40 UTC by Yann Dumont
Modified: 2023-12-11 05:49 UTC (History)
4 users (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 Yann Dumont 2016-12-14 17:40:03 UTC
Hi,

Is it possible to show space's nonprinting characters before break lines at the right of the right margin in justified, so we can see if there is more than one space before the return, and how many they are. Deleting surnumeral spaces would be easier, and you won't need to check your whole paragraph for double spaces if you add some words at the beginning.

Steps to reproduce :
- enable show nonprinting characters
- add words to a paragraph in justified until the last words are in another line
- add spaces just after the last word of the first line

Actual result : no space nonprinting characters are shown at the end of the first line, nor at the beginning of the second.

Expected result : space nonrpinting are shown right to the right margin, as many as there is spaces between the last word of the first line and the first word of the second one.

Alternative expected result : space nonrpinting are shown right to the right margin ONLY IF there is more than one, as many as there is spaces between the last word of the first line and the first word of the second one.

I use the 4.4.4.3 release (Build ID: 40m0(Build:3)) on a Debian 64 stable, but I don't think this behaviour is hardware or OS dependant.
Comment 1 Heiko Tietze 2016-12-18 10:32:43 UTC Comment hidden (obsolete)
Comment 2 Heiko Tietze 2016-12-18 10:40:19 UTC Comment hidden (obsolete)
Comment 3 Yann Dumont 2016-12-28 11:31:41 UTC
(In reply to Heiko Tietze from comment #2)
> Sounds reasonable but in case of many spaces at the end you won't see a
> justified text anymore.

Maybe it can show two space non printable characters and then a counter limited to, let's say, 3. I imagine something like ×2, ×3 and ×3+ when it goes higher. I don't know if it's makable.
Comment 4 Dieter 2021-07-31 10:29:18 UTC
*** Bug 119363 has been marked as a duplicate of this bug. ***
Comment 5 Dieter 2021-07-31 10:33:18 UTC
Heiko, any ideas of a proper solution? Telesto mentioned in bug 119363 comment 4: "MacOS Pages places the dot on the last character (not sure how Word handles this)." The idea of Yann i n comment 0 is to place an indicator within the right margin.
Comment 6 Heiko Tietze 2021-08-23 14:13:01 UTC
We show the dot when the paragraph is left aligned but (of course) not when centered neither when right aligned. And we miss multiple spaces, see bug 43244. So yes to the proposed solution.
Comment 7 Commit Notification 2022-06-24 12:15:50 UTC
Attila Szűcs committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/7ef9c3ef30023cc40068e1f735aa4bec4811288b

tdf#43100 tdf#104683 tdf#120715 sw: cursor on spaces over margin

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 NISZ LibreOffice Team 2022-06-28 08:44:01 UTC
Verified in: 
Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 415dc3bb1c03dbdbc3cbca274bc435ac7557ba2d
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL
Comment 9 Commit Notification 2022-06-29 08:51:43 UTC
Stephan Bergmann committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/761d3a128214b48645f00e2ff094e0f8928d1ee1

Revert "tdf#43100 tdf#104683 tdf#120715 sw: cursor on spaces over margin"

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 10 Heiko Tietze 2022-06-29 11:04:09 UTC
Stephan reverted the patch => reopen.
Comment 11 Commit Notification 2022-07-04 13:35:37 UTC
Attila Szűcs committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/690d4eb71509649ad147cfe60f5b97e2cfaaa519

tdf#43100 tdf#104683 tdf#120715 sw: cursor on spaces over margin

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.