Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escaping in xlsx reports #123

Open
NikitaShchienko opened this issue Dec 5, 2019 · 1 comment
Open

Escaping in xlsx reports #123

NikitaShchienko opened this issue Dec 5, 2019 · 1 comment
Labels
type: bug Something isn't working
Milestone

Comments

@NikitaShchienko
Copy link
Contributor

Environment

  • Platform version: 7.1

Description of the bug or enhancement

Add the ability to escape lines in xlsx reports.

Forum: https://www.cuba-platform.com/discuss/t/reporting-band-inside-band/3008/10

@knstvk knstvk transferred this issue from cuba-platform/reports Dec 9, 2019
@andreysubbotin andreysubbotin added this to the Release 2.2 milestone Dec 9, 2019
@andreysubbotin andreysubbotin added the type: bug Something isn't working label Dec 9, 2019
@gorbunkov gorbunkov assigned Desire456 and unassigned t2-cuba Jul 12, 2021
@lovtsovaik lovtsovaik assigned owlet1997 and unassigned lovtsovaik Jul 20, 2021
Desire456 added a commit that referenced this issue Jul 20, 2021
Desire456 added a commit that referenced this issue Jul 27, 2021
Desire456 added a commit that referenced this issue Jul 27, 2021
@Desire456
Copy link
Contributor

Reverted because needs to be discussed.
Code to solve the problem:

            CTXstringWhitespace t = ObjectUtils.defaultIfNull(is.getT(), Context.getsmlObjectFactory().createCTXstringWhitespace());
            t.setValue(value);
            t.setSpace("preserve");
            is.setT(t);
            newCell.setIs(is);
            newCell.setV("");
            if (newCell.getT() == STCellType.S || newCell.getT() == STCellType.STR) {
                newCell.setT(STCellType.STR);
                newCell.setT(STCellType.INLINE_STR);
            }

@Desire456 Desire456 reopened this Jul 27, 2021
@Desire456 Desire456 removed their assignment Sep 15, 2021
@owlet1997 owlet1997 assigned lovtsovaik and unassigned owlet1997 Apr 21, 2022
@lovtsovaik lovtsovaik removed their assignment Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants