Skip to content

AutoText cuts off after line break #146

@Chrissyx

Description

@Chrissyx

By adding some text like this:

DynamicReportBuilder dynamicReportBuilder = new DynamicReportBuilder();
dynamicReportBuilder.setPageSizeAndOrientation(Page.Page_A4_Portrait())
AutoText autoText = new AutoText("Header 1\\nHeader2\\n", AutoText.POSITION_HEADER, HorizontalBandAlignment.LEFT, 480);
autoText.setStyle(...);
dynamicReportBuilder.addAutoText(autoText);

Both lines are printed. This always worked up to version 5.3.6.
But something is broken since 5.3.7 regarding the line break handling. Newer versions just cut off everything after the first \n so only the first line of text is printed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions