elapouya / python-docx-template

Use a docx as a jinja2 template
GNU Lesser General Public License v2.1
1.91k stars 378 forks source link

Add List Bullets and List Numbers to Richtext #469

Open jurkov opened 1 year ago

jurkov commented 1 year ago

Is your feature request related to a problem? Please describe.

I would like to use List Bullets or List Numbers with the RichText feature of docxtpl. Setting the style alone does not bring the desired result in the docx. Some changes need to be applied to the paragraph to let it look the right way.

Describe the solution you'd like

I would like to have some RichText features similar to the add URL feature to add List Bullets or List Numbers.

Describe alternatives you've considered

The only workaround is to prepare the docx to have a switch, to display text or List Bullets. If I don't the structure of the text, it's simply not an option.

Additional context

An python-docx example can be found at StackOverflow https://stackoverflow.com/a/51830413