New Line in Static Text in Jaspersoft Studio


How do I insert a new line character in a Static Text box in Jaspersoft Studio?


What it looks like right now:



What I want it to look like:






jin.lee's picture
Joined: May 4 2017 - 7:20am
Last seen: 4 years 11 months ago

On my machine, am using ubuntu linux,  achieve this by pressing SHIFT+alt+ Enter,  while in text mode of text obje

simmtechnology - 4 years 6 months ago

Simmtechnology is correct, also the correct way for Windows - this should be listed as an answer. Just Shift+Enter doesn't work in Windows.

hondaman900 - 3 years 9 months ago

2 Answers:

It's very simple. Just click the static field on the canvas to get into edit mode and press Shift + Enter to enter a carriage return.

hozawa's picture
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 2 weeks ago

I think it's simple. Set your Static Text markup style as HTML and use <br> tag.

For example,

"Line One <br/> Line Two"

shashanth's picture
Joined: Jul 6 2017 - 10:05am
Last seen: 4 years 11 months ago