Bug 56085 - EDITING Writer does not save nobreakspaces in document metadata
Summary: EDITING Writer does not save nobreakspaces in document metadata
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.2.2 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.6.0
Keywords:
Depends on:
Blocks: File-Properties Authors
  Show dependency treegraph
 
Reported: 2012-10-17 12:47 UTC by Nicolas Mailhot
Modified: 2023-05-04 10:20 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
example of NBSP in metadata of Writer document (9.22 KB, application/vnd.oasis.opendocument.text)
2017-01-09 09:36 UTC, Alexander Polkhovskiy
Details
Better exaple of NBSP behavior (12.15 KB, application/vnd.oasis.opendocument.text)
2018-09-18 10:16 UTC, Alexander Polkhovskiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Mailhot 2012-10-17 12:47:32 UTC
Writer does not honour nobreakspaces in document metadata, leading to broken titles when typographic rules require the use of nobreakspace before or after a punctuation symbol (as in the case in French)

This is highly visible when a document copies the title field content on its first page in big letters with punctuation ending up on the wrong line

Both my Linux and Windows keyboard layout let one type nobreakspace with altgr+shift+space

Please do not filter unicode codepoints this way
Comment 1 bfoman (inactive) 2013-05-08 11:12:00 UTC
Confirmed with:
LO 4.0.2.2
Build ID: own W7 debug build
Windows 7 Professional SP1 64 bit
Comment 2 Alexander Polkhovskiy 2014-12-12 13:20:08 UTC
Confirm on LO 4.3.4.1 Win 8 x64 Pro. Using Alt+0160. It appears as usual space in text.
Comment 3 QA Administrators 2015-12-20 16:13:32 UTC Comment hidden (obsolete)
Comment 4 Alexander Polkhovskiy 2015-12-21 09:20:55 UTC
The problem still here
LO v 5.0.4.2
Windows 8.1 x64
Comment 5 QA Administrators 2017-01-03 19:58:03 UTC Comment hidden (obsolete)
Comment 6 Alexander Polkhovskiy 2017-01-09 09:35:28 UTC
Bug isn't fixed in LO 5.2.3.3 x32
ID: d54a8868f08a7b39642414cf2c8ef2f228f780cf
Windows 6.2 (8.1 pro x64)
Comment 7 Alexander Polkhovskiy 2017-01-09 09:36:43 UTC
Created attachment 130275 [details]
example of NBSP in metadata of Writer document
Comment 8 QA Administrators 2018-09-18 02:49:50 UTC Comment hidden (obsolete)
Comment 9 Alexander Polkhovskiy 2018-09-18 10:15:20 UTC
Still reproduced in
Version: 6.2.0.0.alpha0+ (x64)
Build ID: 414ef6cb187dd3bbcc917dbedf3c0c1cc8668f60
CPU threads: 4; OS: Windows 6.3; UI render: default; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-08-21_00:13:04
Locale: ru-RU (ru_RU); Calc: CL
Comment 10 Alexander Polkhovskiy 2018-09-18 10:16:10 UTC
Created attachment 144981 [details]
Better exaple of NBSP behavior
Comment 11 QA Administrators 2019-09-19 03:15:13 UTC Comment hidden (obsolete)
Comment 12 Alexander Polkhovskiy 2019-09-27 13:40:40 UTC
Works same in
Version: 6.4.0.0.alpha0+ (x86)
Build ID: 5440274a2a295fb2662ea415f25b89fc298930c8
CPU threads: 8; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-09-26_01:04:59
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: CL
Comment 13 QA Administrators 2022-01-23 03:42:45 UTC Comment hidden (obsolete)
Comment 14 Alexander Polkhovskiy 2022-02-25 09:45:30 UTC
Works same in
Version: 7.2.5.2 (x86) / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL

NBSP symbols are kept in metadata, but they work wrong in text.
Comment 15 Commit Notification 2023-04-14 18:11:37 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/6edb6d2b34eb48d0db6d568fd22929eb1e5fa98e

sw: fix crashtesting assert on tdf56085-1.odt

It will be available in 7.6.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 16 Alexander Polkhovskiy 2023-05-04 10:20:34 UTC
I see LO saving NBSP char in metadata, but it is not taken into account in text - text still breaks on any type of break char.
Or is it another defect?

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 83b1f6b58a30bdb589e9ce73deef39f021aebde1
CPU threads: 20; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded