Issue 114766

Summary: Number item ending in superscript cause next paragraph to be superscript
Product: Writer Reporter: marc_neeley <marc.neeley>
Component: editingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: hdu, issues
Version: OOo 3.2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Description Flags
Demonstration of Issue 114766 none

Description marc_neeley 2010-09-27 02:18:58 UTC
If outline bullet or number formatting is in effect for a paragraph and a
bulleted or numbered item ends in a word such as "15th" or "2nd" the default
formatting of the "th" or "nd" will be superscripted as expected. However, if
one then hits enter for a soft return and begins the next bullet or numbered
item the new item formats the typed content in superscript form. It appears that
the following numbered or bulleted item adopts the formatting of the previous
paragraph, but more specifically the last letter of the previous paragraph. It
would likely be safer to adopt the beginning format of the previous paragraph,
but more robust adoption algorithms could be developed that could inspect the
previous paragraph for a "dominant" format and apply that. The current
condition, however, is least acceptable.
Comment 1 eric.savary 2010-09-27 05:38:50 UTC
Please describe step by step what you are doing an attach a sample document.

Case 1: new paragraph triggers AutoCorrect
- You write: "This is a test 15th"
- press Enter
-> the "th" gets auto corrected to <super>th</super>, a new paragraph is created
an the formatting is still superscript.
This would be a bug (compare issue 71218) but I cannot reproduce it.

Case 2: new paragraph after existing formatting
- The text is already formatted: "This is a test 15<super>th</super>"
- The cursor is set after "th" and you press Enter
-> the superscript remains. No bug. The hard formatting (like italic, bold...)
continues over paragraphs.

Please detail.

Comment 2 marc_neeley 2010-09-29 18:22:49 UTC
Created attachment 71903 [details]
Demonstration of Issue 114766
Comment 3 marc_neeley 2010-09-29 18:24:07 UTC
I have attached a demonstration document (Demonstration.odt) . I have noticed
that I cannot reproduce the problem while using the default Times New Roman
font. However, when I first incurred the error I was using Calibri and can
reproduce the condition with that. See the document. I think this issue is
similar to 71218, but that was with OOo2.0.4. I think in either case the
formatted font size should recover to the non-superscript or non-subscripted
size after a hard return whether it is in a numbered list or not.

Comment 4 eric.savary 2010-09-30 12:00:44 UTC
@OS/HDU: there is something strange with the second sample of numberings in the
attached document.

In "1. Activities will begin on November 15th" type again "15th" inside of the
paragraph and press Enter.
Expected: 15th corrected to 15^th, new paragraph, normal font formatting
Result:  15th corrected to 15^th, new paragraph, superscript formatting

This does not happen in other paragraphs.

marc_neeley says that applying Calibri font causes this but I cannot confirm.
Applying Calibri to a new paragraph in a new document doesn't cause the problem.
Comment 5 marc_neeley 2010-10-01 17:47:12 UTC
I want to make a subtle clarification in your comment about "applying Calibri
font". When the anomaly occurs, I have already switched the font to Calibri
*prior* to beginning the typing of a numbered list. I am not typing the list in
a default font and then applying the Calibri font afterward. I am able to
reproduce this quite readily as shown in the previously attached document.
Comment 6 Marcus 2017-05-20 11:18:09 UTC
Reset assigne to the default "".