Marker alignment in Jasper reports

The following publication replies that bullets can have a suspended indent / alignment, adding a left pad.

Jasper Report HTML bullet hanging indent

However, when I tried to do this, the whole line would move, and so the bullets would no longer be padded

So the text:

- TEXT TEXT TEXT TEXT TEXT TEXT 

will become:

  - TEXT TEXT TEXT TEXT TEXT TEXT 

when I want:

 - TEXT TEXT TEXT TEXT TEXT TEXT 

How can I align the second line of markers. Is there a hanging indent / first line indent that accepts negative numbers or any other method I could do?

0
source share
1 answer

After playing a little, I found that what I could do was add an indent for the whole paragraph and make the first line a negative indent.

I use api called dynamic reports, so the way I did this was

 TextColumnBuilder<String> itemBulletsCol = col.column( "", COLUMN_NAME_BULLET_LIST, type.stringType() ).setStyle(.... .setFirstLineIndent(-10) .setPadding(10) ); 
0
source

Source: https://habr.com/ru/post/977188/


All Articles