Forum


Replies: 12   Views: 3724
Custom list style issues
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by tutotours  · 12-09-2017 - 14:27

Hello ! 

I tried setting left to 1 like this :

$itemsOptions[0]['type'] = 'upperLetter';
$itemOptions[0]['left']= 1;
$docx->createListStyle('items', $itemsOptions);
$docx->replaceVariableByHTML('BODYCOLLE', 'block', $html, array(
            'downloadImages' => true,
            'parseDivsAsPs' => true,
            'customListStyles' => true
        ));

And it didn't change anything.

 

Using inline instead of block in replaceVariableByHTML removes all paragraphs and lists elements.

Here's an example of HTML I'm using : 

La liaison σ est plus stable que la liaison π