Skip to content

cloneBlock dont work #1148

Closed
Closed
@mathiastm

Description

@mathiastm

Hi everyone, i have one Word documment "test1.docx" with one block ${MYBLOCK} ... ${/MYBLOCK}.
in this document the cloneBlock function work well but in an other document i have the same block but the preg_match function in cloneBlock() match nothing...
i dumped the $matches variable.

in my first document

array:5 [▼
  0 => """
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n
    <w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" x ▶
    """
  1 => """
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n
    <w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" x ▶
    """
  2 => "<w:p w:rsidR="005A380F" w:rsidRDefault="005A380F" w:rsidP="00662B52"><w:r w:rsidRPr="00CD65D3"><w:rPr><w:highlight w:val="yellow"/></w:rPr><w:t>${BOUCLE1_CLIENT ▶"
  3 => "<w:p w:rsidR="005A380F" w:rsidRDefault="00A8472A" w:rsidP="00105810"><w:pPr><w:ind w:left="1418"/></w:pPr><w:r><w:t>${CONT/ETATCIVIL}</w:t></w:r><w:r w:rsidR="0 ▶"
  4 => "<w:p w:rsidR="005A380F" w:rsidRDefault="005A380F" w:rsidP="00662B52"><w:r w:rsidRPr="00CD65D3"><w:rPr><w:highlight w:val="yellow"/></w:rPr><w:t>${/BOUCLE1_CLIEN ▶"
]

in the second :

[]

any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions