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

Text parameter for template is not resolving fully if eol character used #712

Closed
remiprink opened this issue Jul 1, 2020 · 2 comments · Fixed by #3145
Closed

Text parameter for template is not resolving fully if eol character used #712

remiprink opened this issue Jul 1, 2020 · 2 comments · Fixed by #3145
Labels
bug Something isn't working p3 Major
Milestone

Comments

@remiprink
Copy link

Description
In case user uses eol character inside of value of parameter for freemarker template, the value is resolving only before the end of line, all other characters are cut out.

To Reproduce

  1. Create ftl template, which will consume text parameter
  2. Initialize template in a story, as a value for parameter define text that has end of line characters

Expected result
Text parameter is resolved fully in template

Actual result
Text parameter is resolved only 'till the first eol character, all other text is cut off (please, see the screenshot attached)

Artifacts
Screenshot_1490

Execution environment:

  • Vividus version: 0.2.3-SNAPSHOT
  • OS: Win 10
  • Java: 11.0.2 2019-01-15 LTS
    Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
    Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)
@remiprink remiprink added the bug Something isn't working label Jul 1, 2020
@remiprink
Copy link
Author

priority - p3

@ikalinin1 ikalinin1 added the p3 Major label Jul 1, 2020
@valfirst valfirst added this to the 0.5.0 milestone Feb 22, 2023
@valfirst
Copy link
Collaborator

https://docs.vividus.dev/vividus/latest/glossary.html#_using_values_with_line_breaks:

Line break is a default separator for rows in ExamplesTable, that’s why they can’t be added as is to the data. In order to put value with line breaks to ExamplesTable escape sequences (a character preceded by a backslash \ is an escape sequence) must be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p3 Major
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants