Page 1 of 1

Trailing spaces

Posted: Tue Feb 09, 2021 3:14 pm
by Stéphane
I have one trailing space in the Text property of a StiText. When the report is rendered, this trailing space is removed. I tried to set the option StiOptions.Engine.MeasureTrailingSpaces to true, but it doesn't change anything (I use the latest version).
If I put two trailing spaces, then, the two spaces are well rendered, it's very strange.

How do I keep trailing spaces always displayed ?

Re: Trailing spaces

Posted: Wed Feb 10, 2021 11:20 am
by Lech Kulikowski
Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.

Re: Trailing spaces

Posted: Mon Feb 15, 2021 2:39 pm
by Stéphane
There is no need to have data. In the report in attachment, I only put a StiText with the text "There should be a space after the colon : ". This trailing space is never rendered.

Re: Trailing spaces

Posted: Tue Feb 16, 2021 12:07 pm
by Lech Kulikowski
Hello,

That option StiOptions.Engine.MeasureTrailingSpaces is supported only in the .net version.

In the web version, is available StiOptions.Export.Html.PreserveWhiteSpaces option (true by default) and it is working only with 2 or more spaces in the end of the string due to the web browser specifics of rendering.

Thank you.