Hello !
I have some problems with custom list styles.
First, this code doesn't seem to work to make list left indent to 0 :
$itemsOptions[0]['type'] = 'upperLetter';
$itemOptions[0]['left']= 0;
// create the list style with name: latin
$docx->createListStyle('items', $itemsOptions);
$docx->replaceVariableByHTML('BODYCOLLE', 'block', $html, array(
'downloadImages' => true,
'parseDivsAsPs' => true,
'customListStyles' => true
));
UpperLetter option is working fine but left option doesn't.
I also have some list items which have line breaks before them with no reason. I checked HTML and the line break is not there in it but appears in the Docx.
Ex :
Should be :
A. Item 1
Appears as :
A.
Item 1
I saw that it's happening when I have images or a line with bold writing on the line before.
I can send you an example if you don't know what I mean.