Bug 156149 - Formula Object cannot render variables raised to multiple powers
Summary: Formula Object cannot render variables raised to multiple powers
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
7.5.3.2 release
Hardware: All Windows (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Formula-Editor
  Show dependency treegraph
 
Reported: 2023-07-04 01:28 UTC by swulf
Modified: 2023-07-04 15:30 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
An incorrect result produced by Writer. (8.72 KB, image/png)
2023-07-04 01:30 UTC, swulf
Details

Note You need to log in before you can comment on or make changes to this bug.
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.