Jump to content
We've recently updated our Privacy Statement, available here ×

html markup problem


itchytoes

Recommended Posts

Hi all --

I would like to know if this is a bug.

I'm playing with the StyledReport.jrxml example in the latest 3.1.0 jasperReports to try out markup="html"

I added this textField, and for some reason the <ol><li> style elements work only if there is some text after them.

For  example, this works:

<textFieldExpression class="java.lang.String"><![CDATA["<font size=20"><b>hello</b></font><ol><li>one</li><li>two</li></ol>xyz]]></textFieldExpression>

But, if I remove the 'xyz' trailing text,

<textFieldExpression class="java.lang.String"><![CDATA["<font size=20"><b>hello</b></font><ol><li>one</li><li>two</li></ol&gt]]></textFieldExpression>

I get a runtime Invalid substring range when I run 'ant fill'.

Is this a bug?  Or am I doing something wrong?

 

Thanks

 

Betty

 

 

Link to comment
Share on other sites

  • 1 month later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...