Closed darkalto2009 closed 2 months ago
Attaching patch for better understanding. FYR: Allow_changing_numbering_context_indent_and_hanging.patch
Indent
is used to indicate the indentation between parent and child lists. For the first level offset, it's recommended to use margin
or padding
on the ul
or ol
tag. As for whether to add hanging
, I will consider it.
@draco1023, please let me know, by when can I expect the changes to be released?
Try 0.4.18-poi5
.
Note: numberingHanging
will have no effect when the value of list-style-position
is inline
.
@draco1023 Thank you for the quick turn around.
Describe the bug @draco1023 I want to use HTMLRenderPolicy.java to set paragraphs. The paragraph can have 'ul' and 'ol' tags. I am trying to set the indent of the created bullets, but it getting set as 0. The issue is with the NumberingContext.java where the below code is written:
Here, when i = 0, then indent is set to 0, even when I try to set a value. Can we change this to below?
Also, can we add another configuration for ind.setHanging(...)? We can add a variable in HtmlRenderConfig.java just like custom numbering indent.
HTML content:
Expected behavior When I am setting the custom numbering indent in HtmlRenderConfig.java, I expect the indent to be applied properly. Also, indent hanging property should be available to format the bullet.
poi-tl-ext version: 0.4.15-poi5
poi-tl version: 1.12.2