Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several Fields in one Paragraph #151

Open
hansVader11 opened this issue Jul 11, 2023 · 3 comments
Open

Several Fields in one Paragraph #151

hansVader11 opened this issue Jul 11, 2023 · 3 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@hansVader11
Copy link

hansVader11 commented Jul 11, 2023

If you have several Fields in one Paragraph, they are not displayed correctly.

Output:
FieldType : AddressBlock
FieldFormat : Lower
FieldSwitches : {}
FieldInstructions : {Vorname, MERGEFIELD, Name}
Field : MERGEFIELD Vorname MERGEFIELD Name
UpdateField : False
LockField : True
Text : Hans

FieldType : AddressBlock
FieldFormat : Lower
FieldSwitches : {}
FieldInstructions : {Vorname, MERGEFIELD, Name}
Field : MERGEFIELD Vorname MERGEFIELD Name
UpdateField : False
LockField : True
Text : Hans

XML:

<w:p>
    <w:r>
        <w:fldChar w:fldCharType="begin" w:fldLock="1" />
    </w:r>
    <w:r>
        <w:instrText xml:space="preserve"> MERGEFIELD Vorname </w:instrText>
    </w:r>
    <w:r>
        <w:fldChar w:fldCharType="separate" />
    </w:r>
    <w:r>
        <w:t>Hans</w:t>
    </w:r>
    <w:r>
        <w:fldChar w:fldCharType="end" />
    </w:r>
    <w:r>
        <w:t xml:space="preserve"> </w:t>
    </w:r>
    <w:r>
        <w:fldChar w:fldCharType="begin" w:fldLock="1" />
    </w:r>
    <w:r>
        <w:instrText xml:space="preserve"> MERGEFIELD Name </w:instrText>
    </w:r>
    <w:r>
        <w:fldChar w:fldCharType="separate" />
    </w:r>
    <w:r>
        <w:t>Peter</w:t>
    </w:r>
    <w:r>
        <w:fldChar w:fldCharType="end" />
    </w:r>
</w:p>

(Sorry, didn't know how to better display the XML)

@PrzemyslawKlys PrzemyslawKlys added bug Something isn't working enhancement New feature or request labels Jul 11, 2023
@PrzemyslawKlys
Copy link
Member

@byteSamurai would you be able to address this in your field parser?

@byteSamurai
Copy link
Contributor

Maybe, but not within this week.
@hansVader11 could you attach an example word file for this, please? Just to ensure I capture everything correctly 🙂

@hansVader11
Copy link
Author

@byteSamurai sure, here it is. Thanks for your help!
Testdoc.docx

PS: i just noticed that the Mergefields in "Errichbare Punkte" (rezepzion, produktion, mediation, summe and interaktion) are also not displayed. Is this because they are in a table?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants