Categories > OpenTBS with DOCX >

Merge just words (not paragraphs)

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Alex
Date: 2016-05-06
Time: 10:46

Merge just words (not paragraphs)

Hi,
having the following array ($elencoGaranzie):
Array
(
    [0] => Array
        (
            [nomeGaranzia] => Elettronica
        )

    [1] => Array
        (
            [nomeGaranzia] => Eventi SocioPolitici
        )

    [2] => Array
        (
            [nomeGaranzia] => Fenomeno elettrico
        )

    [4] => Array
        (
            [nomeGaranzia] => Fulmine
        )

    [6] => Array
        (
            [nomeGaranzia] => Atti Vandalici
        )

)

i need this output on word (on same line):

Elettronica / Eventi SocioPolitici / Fenomeno elettrico / Fulmine / Atti Vandalici

but with the this tag: [elencoGaranzie.nomeGaranzia;block=tbs:p;noerr] I get (separated lines):

Elettronica
Eventi SocioPolitici
Fenomeno elettrico
Fulmine
Atti Vandalici

How can i get it work?
Thank you
Alex
By: Alex
Date: 2016-05-09
Time: 09:16

Re: Merge just words (not paragraphs)

...up...
By: Skrol29
Date: 2016-05-10
Time: 01:06

Re: Merge just words (not paragraphs)

Try with :
   [elencoGaranzie.nomeGaranzia;block=w:t]

<w:t> element are sub-parts of a <w:p> that have the same formatting.
See http://www.tinybutstrong.com/plugins/opentbs/xml_synopsis.html#msoffice_docx_main