Bug 156149

Summary: Formula Object cannot render variables raised to multiple powers
Product: LibreOffice Reporter: swulf <chris.carter.iee>
Component: Formula EditorAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG    
Severity: enhancement CC: chris.carter.iee, rb.henschel, vsfoote
Priority: medium    
Version: 7.5.3.2 release   
Hardware: All   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 39750    
Attachments: An incorrect result produced by Writer.

Description swulf 2023-07-04 01:28:35 UTC
Description:
A formula entered in Writer cannot correctly render something raised to multiple powers (i.e. 'a squared, cubed'. Instead, it simply concatenates the two powers, resulting in 'a to the 23'.

Steps to Reproduce:
1. Open a Writer document
2. Insert a Formula object
3. For example, enter '{a^2}^4'
4. Writer displays 'a^24'

Actual Results:
Writer displays 'a^24'.

Expected Results:
Writer should display a-squared raised to the 4th power.


Reproducible: Always


User Profile Reset: No

Additional Info:
None.
Comment 1 swulf 2023-07-04 01:30:33 UTC
Created attachment 188196 [details]
An incorrect result produced by Writer.
Comment 2 V Stuart Foote 2023-07-04 14:44:13 UTC
Simply enter expression functionally in StarMath with Parentheses () as 
"(a^{2})^{4}"

What else could the markup be, IMHO explicitly requiring the parenthesis to establish the ODF node is NAB.
Comment 3 swulf 2023-07-04 15:30:22 UTC
You are quite right. I realized this after submitting the report(!) but I couldn't see a way to delete it.