Bug 413483

Summary: Leading space trimming produces broken multiline output
Product: [Applications] cantor Reporter: Antonio Rojas <arojas>
Component: sage-backendAssignee: Nikita Sirgienko <warquark>
Status: RESOLVED FIXED    
Severity: normal CC: warquark
Priority: NOR    
Version: 19.08   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 19.12
Sentry Crash Report:

Description Antonio Rojas 2019-10-26 17:36:54 UTC
SUMMARY
Trimming the leading spaces can sometime lead to corrupt output.

Test: input 'x^2' in sage

Expected output:
 2
x

Actual output:
2
x
Comment 1 Nikita Sirgienko 2019-11-14 20:58:47 UTC
Sorry for delay.

I don't understand, why your sage produce input like that. My sage 8.7 just produce "x^2".
Comment 2 Antonio Rojas 2019-11-14 21:02:40 UTC
Ah, right. You need to set '%display unicode_art' to see it
Comment 3 Nikita Sirgienko 2019-11-27 10:29:55 UTC
Git commit 11cddacfa1c89ba3a968c0ef3d9de0576a8136d7 by Nikita Sirgienko.
Committed on 27/11/2019 at 10:29.
Pushed by sirgienko into branch 'release/19.12'.

[Sage] Fix bug with unsuitable space removing in sage output
FIXED-IN: 19.12

M  +0    -1    src/backends/sage/sageexpression.cpp

https://invent.kde.org/kde/cantor/commit/11cddacfa1c89ba3a968c0ef3d9de0576a8136d7