Forum


Replies: 6   Views: 2505
Span tag removes space after
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 queejie  · 25-01-2019 - 14:51

When generating a Word doc from HTML, this:

<span class="italic">some</span> text

and this:

<em>some</em> text

The result is 'sometext' in the first case and 'sometext' in the second.  In both cases, the space between some and text is removed.

These are the options used:

    public $docxParseOptions = [
        'downloadImages'           => TRUE,
        'generateCustomListStyles' => TRUE,
        'parseDivsAsPs'            => FALSE,
        'parseFloats'              => FALSE,
        'removeLineBreaks'         => TRUE,
        'strictWordStyles'         => FALSE,
        'addDefaultStyles'         => TRUE,
    ];

Is one of these settings wrong, a setting missing, or is this a bug? Thank you.