Skip to main content
Participant
November 13, 2024
Question

Dot added at the end of the paragraph when importing XML

  • November 13, 2024
  • 1 reply
  • 219 views

I have some ExtendScripts to import XML files into a template. They were developed some years ago using InDesign CS6. They worked fine.

Currently I'm using InDesign 19.5. When importing an XML file it is adding a dot at the end of each paragraph. I don't know how to avoid that, as the XML text already has the dots and it is duplicating the dot.

My input file is something like this:

<paragraph>Text paragraph 1.</paragraph>
<aid3:br/>
<paragraph>Text paragraph 2.</paragraph>
<aid3:br/>

I have realized that removing the <aid3:br> tag it does not add the dot, but it neither adds the line break. I just want the line break to be added.

I have these configuration properties:

with (app.documents[0].xmlImportPreferences) {
    importToSelected = false;
    importStyle = importType;
    createLinkToXML = false;
    allowTransform = false;
    repeatTextElements = true;
    ignoreUnmatcherIncoming = false;
    importTextIntoTables = true;
    ignoreWhitespace = false;
    removeUnmatchedExisting = false;
    importCALSTables = true;
}

We have looked into InDesign configuration and in paragraph styles. No clue found.

Where can it be configured?

Thanks.

 

This topic has been closed for replies.

1 reply

Robert at ID-Tasker
Legend
November 13, 2024

Can you post some screenshots - with hidden characters visible. 

 

Or even sample INDD and XML file. 

 

Participant
November 14, 2024

Thanks for your interest Robert.

I managed to solve the problem yesterday but did not have time to put the information in this post.
The problem was not with the XML import but with running a grep that added the extra point.
I thought it was in the import because I could not see the text in the template. Yesterday I was finally able to see it and saw in which step of the script execution the dot was being added.
Regards.