Bug 413483 - Leading space trimming produces broken multiline output
Summary: Leading space trimming produces broken multiline output
Status: RESOLVED FIXED
Alias: None
Product: cantor
Classification: Applications
Component: sage-backend (show other bugs)
Version: 19.08
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Nikita Sirgienko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-26 17:36 UTC by Antonio Rojas
Modified: 2019-11-27 10:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 19.12
Sentry Crash Report:


Attachments

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