Apache OpenOffice (AOO) Bugzilla – Issue 114766
Number item ending in superscript cause next paragraph to be superscript
Last modified: 2017-05-20 11:18:09 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.
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.
Created attachment 71903 [details] Demonstration of Issue 114766
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. Marc
@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.
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.
Reset assigne to the default "issues@openoffice.apache.org".