Is it possible to add given number of space in a TOC?


from this picture,i i have give it 2 spaces between the content.
however, when i use {TOC \o "8-8" \h \z \u } to display the toc of “表”,


it only has one space and not the font that i want.
is it possible to change it ? how could i fix it?

@Madecho Could you please attach your input and output documents along with simple code that will allow us to reproduce the problem? We will check the issue and provide you more information. Unfortunately, the provided screenshots does not give enough information for analysis.

@alexey.noskov hi alexey ,
test.zip (602.7 KB)
here are the java testClass and input, output.
the original output is


the expected ouput that i want is

which i added one moe space and changed their font. font of space.
is this achievable through code ?

@Madecho This is the expected behavior. Upon updating TOC both MS Word and Aspose.Words trims leading whitespace characters in the list item. Please see the attached simplified case created in MS Word:
in.docx (16.0 KB)

I am afraid I do not see a way to prevent this.

1 Like