How to insert line breaks dbunit dataset
Asked Answered
U

1

5

How to insert line break in dbunit dataset? Like this:

    <user id="1" 
story="first line
       second line
       third line"/>

If I do it in this way field story in db appears divided by spaces only but I need a line break.

Uraninite answered 6/5, 2010 at 12:4 Comment(0)
U
7

Upps, I found solution:

<user id="1" 
story="first line&#13;&#10;second line&#13;&#10;third line"/>
Uraninite answered 6/5, 2010 at 12:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.