Bug 57981 - French : spaces before exclamation/question marks in brackets deleted
Summary: French : spaces before exclamation/question marks in brackets deleted
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Localization (show other bugs)
(earliest affected)
3.5.4 release
Hardware: All All
: medium minor
Assignee: Not Assigned
: 51953 61443 143598 (view as bug list)
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
Reported: 2012-12-07 13:52 UTC by didi
Modified: 2021-07-30 19:34 UTC (History)
11 users (show)

See Also:
Crash report or crash signature:
Regression By:


Note You need to log in before you can comment on or make changes to this bug.
Description didi 2012-12-07 13:52:51 UTC
Problem description: 
When the text language is French (France), with the option "Add non breaking space before specific punctuation marks in French text" enabled, spaces before exclamation and question marks located before a bracket ((, ), [, ], { or }) are automatically deleted.

Steps to reproduce:
1. enable option "Add non breaking space before specific punctuation marks in French text" in a text set to French (France)
2. type "blah !)", "blah!)" or any combination of an exclamation/question mark and a bracket of any type ((, ), [, ], { or }) located directly after it.

Current behavior:
The text is modified as following:
blah !) => blah!)
blah!) => blah!)
blah !] => blah!]
and so on...

Expected behavior:
The text should be modified as following:
blah !) => blah !)
blah!) => blah !)
blah !] => blah !]
Comment 1 Olivier R. 2013-03-06 10:47:28 UTC
Confirmed on LO 4.
Comment 2 Olivier R. 2013-03-06 10:57:20 UTC
*** Bug 61443 has been marked as a duplicate of this bug. ***
Comment 3 libreoffice 2013-12-08 23:25:24 UTC
*** Bug 51953 has been marked as a duplicate of this bug. ***
Comment 4 j.tronel 2013-12-13 11:35:59 UTC
In fact, non-breaking space disappears on typing almost any printing character right after the punctuation mark (excluding other punctuation marks, spaces, CR...)
blah ;blah --> blah;blah (right, this one is no frequent use :))
Comment 5 vulcain 2014-05-27 07:21:38 UTC
Same behavior with LibreOffice Build ID: 2e39c7e59c8fc8b16a54c3d981dceef27fb0c07f
(with or without installation of LibreOfficeDev_4.3.0.0.beta1_Linux_x86-64_deb_langpack_fr.tar.gz and LibreOfficeDev_4.3.0.0.beta1_Linux_x86-64_deb_helppack_fr.tar.gz )
Comment 6 vulcain 2014-05-27 07:27:02 UTC
Move x86 to all because i reproduce on Ubuntu 12.04 x86_64 with LibreOffice  Version ID : 350m1(Build:2) or LibreOffice Build ID: 2e39c7e59c8fc8b16a54c3d981dceef27fb0c07f
Comment 7 vulcain 2014-05-27 07:29:47 UTC
Move platform : Linux -> All because in duplicate bug 61443 and 51953 the behavior is reproduce on Windows 7
Comment 8 QA Administrators 2015-07-18 17:44:21 UTC Comment hidden (obsolete)
Comment 9 Pierre C 2015-07-21 08:25:49 UTC
Still present in LO
Comment 10 QA Administrators 2017-05-22 13:40:15 UTC Comment hidden (obsolete)
Comment 11 Olivier R. 2017-05-23 05:57:32 UTC
Bug still exists in 5.3.
Comment 12 didi 2017-05-23 07:15:45 UTC
The bus is still present in (GNU/Linux, Debian unstable).
Comment 13 halima 2017-08-22 02:51:13 UTC
This bug is still present in LO  Version: (x64)
Build ID: 7556cbc6811c9d992f4064ab9287069087d7f62c
Threads CPU : 4; OS : Windows 6.19; UI Render : par défaut; 
Locale : en-GB (fr_FR); Calc: group
Comment 14 QA Administrators 2018-08-23 02:41:34 UTC Comment hidden (obsolete)
Comment 15 Thomas Lendo 2018-10-29 20:18:41 UTC
Still reproducible.

Build ID: 0f190f50368816964b2a1b7bb58000ac1792d640
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: de-DE (de_DE.UTF-8); Calc: threaded
from 2 days ago
Comment 16 QA Administrators 2019-10-30 03:36:48 UTC Comment hidden (obsolete)
Comment 17 Timur 2021-07-29 09:49:25 UTC
*** Bug 143598 has been marked as a duplicate of this bug. ***
Comment 18 Julien Nabet 2021-07-29 10:02:39 UTC
The non-breaking space doesn't disappear if you type space after the "!".
I don't remember well but I think it's on purpose.
The pb here is that in French (at least French from France), there's no space before an ending parenthesis.
So to type: "blah !)" with non-breaking space before the "!", you must type:
"blah", "!" (non-breaking space appears), a space (non-breaking space still there), backspace (non-breaking space still there), end parenthesis.

Laurent/Jean-Baptiste: it makes me think about https://bugs.documentfoundation.org/show_bug.cgi?id=125258#c12 and following comments but it's not an url here.
Any thoughts here?
Comment 19 Laurent BP 2021-07-29 10:27:22 UTC
I agree that is not the expected behavior. 
Removing non-breaking space before ':' is comprehensive to avoid breaking URL.
For this case, I suppose that the goal was to avoid non-breaking space between several exclamation/question marks, like:
Quoi ??? Une parenthèse !!! Mais que fait la police ?!!
A specific test should be added to detect closing parenthesis or braces to not remove non-breaking space.
Bug 51953 comment 1, add same specific problem for percent: (10%) in French should be (10 %)
Comment 21 Jean-Baptiste Faure 2021-07-30 19:34:33 UTC
I agree with Laurent BP in comment #19.

Best regards. JBF