Bug 70554 - FORMATTING Sub- and superscript format is inherited by new paragraphs
Summary: FORMATTING Sub- and superscript format is inherited by new paragraphs
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard: target:6.2.0
Keywords:
Depends on:
Blocks: AutoCorrect-Complete Paragraph
  Show dependency treegraph
 
Reported: 2013-10-17 00:00 UTC by TJ Corley
Modified: 2023-10-04 15:04 UTC (History)
6 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 TJ Corley 2013-10-17 00:00:29 UTC
If you are using the bullet/numbering feature and the last word you use ends with a suffix such as th or st, eg 1st or 5th, and LibreOffice puts it at the top of the word,when you do a new line the text will stay at that size. I believe the only way to change it back to regular size is to remove the suffix and then re-add and then to make sure the font changes back to regular size on that line.
Comment 1 Dominique Boutry 2013-10-23 16:20:03 UTC
Reproduced something analog with LibO 4.1.2.3 on Win7.

No need to be in a list. Just type :
François 1er<Return>
François II

All is OK : the "ER" after "1" is in exponent ; "François II" is OK

Now clic just right to the "er" and type "<Return>Henri 2" ; you get
François 1er
Henri 2
François II

"Henri 2" is badly formated.
Comment 2 Cor Nouws 2013-10-31 20:55:06 UTC
Set to New and update the summary a bit.
OK like this?
Comment 3 Cor Nouws 2013-10-31 20:55:35 UTC
(In reply to comment #0)

> I believe the only way to change it back to regular size is to remove the
> suffix and then re-add and then to make sure the font changes back to
> regular size on that line.

Select text at the second line and hit Ctrl+M helps too
Comment 4 Urmas 2013-11-02 15:37:55 UTC
So you propose that superscript autocorrection put a zero-length span after the text it is going to replace? It won't survive a saving, though.
Comment 5 QA Administrators 2015-04-19 03:21:45 UTC Comment hidden (obsolete)
Comment 6 Gordo 2015-06-13 12:52:01 UTC
Is it possible to add a check when Return is pressed?  If the cursor is preceded by a superscript character then after the Return, default the character to normal.
Comment 7 QA Administrators 2016-09-20 10:00:12 UTC Comment hidden (obsolete)
Comment 8 Thomas Lendo 2018-09-28 06:23:33 UTC
I support Gordo in comment 6: An 'insert manual row break' command (shortcut: shift + enter) or an 'insert paragraph' command (shortcut: enter) always should set back superscript and subscript formatting of characters. At least if it was done by the AutoCorrection feature.

Or as an inversion of the bug report: AutoCorrection changes never should have an effect to following, non-autocorrected characters.
Comment 9 Thomas Lendo 2018-09-28 06:25:19 UTC
Adding needsUXEval to discuss in what direction the bug fix should go.
Comment 10 Heiko Tietze 2018-10-19 10:15:31 UTC
Don't see need for UX, it's a bug.

1st + enter = 1^st, and it continues with normal position. But when I place the cursor later at the superscript and press enter the new (inserted) line remains at this superscript position.
Comment 11 QA Administrators 2019-10-20 02:33:43 UTC Comment hidden (obsolete, spam)
Comment 12 QA Administrators 2021-10-20 03:55:54 UTC Comment hidden (obsolete)
Comment 13 Stéphane Guillou (stragu) 2023-10-04 15:04:42 UTC
Just noting that MS 365 behaves exactly the same way: autocorrection will not affect what is typed after, but going back to after those super/subscript characters will continue using that formatting.
And it was already the case in OOo 3.3.

That being said, the behaviour is fixed in a recent trunk build:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f95c3994f0b6a82a3bc2ddfb68822b74479ae185
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

And since 6.2.

Bibisected the fix to, somehow, core commit:

commit 391134e4cc0cf444ac50c6df02073de57ad9c466
author	Nickson Thanda 	Fri Jun 22 04:59:16 2018 +0100
committer	Miklos Vajna 	Mon Jul 02 09:32:29 2018 +0200
tdf#51223 can now undo auto-capitalise with enter
Reviewed-on: https://gerrit.libreoffice.org/56267

Thank you Nickson!