Trados 2024 removing line breaks in exported XML file - How can i fix this

I'm using Trados Studio 2024 - 18.0.0.1013, we are experiencing different behaviors from Trados 2022 when exporting files.
Here, i've attached a diff of the changes and Trados 2024 has removed the line breaks after and before the comments. I set the entities to Always preserve but it does not work.

Is there a way to have Trados keeping things tidy. I only want to see the changes, not extra changes irrelevant to the product update. 

Side-by-side comparison of code diffs showing removal of line breaks around comments in an XML file.
English

Code snippet with highlighted changes, including translations and comments about shortcut icons and call blocking.

Screenshot of Trados Studio project template settings with 'Always preserve' selected for whitespace in content.

emoji
Parents Reply Children
  • Hi  

    Wish I could be of more help, but I simply can't reproduce this. Using your files and the out-of-the-box XML2 file filter (with “Preserve Whitespaces” on) I get an expected result:

    Side-by-side comparison of XML strings in Trados Studio with German and English translations. A red circle highlights an ellipsis character issue in the German version.

    In my case above, the MT translated the ellipsis into dot-dot-dot, but in your case it's the horizontal ellipsis character. You can define this behaviour in the “Entities” menu of the file type:

    Trados Studio Entity Conversion settings window with 'ellip' searched in the 'Search for entity' field. Red boxes highlight the 'Read as character' option checked for 'hellip' entity.

    Another attempt... I created a Single FIle Project and threw your file in, and voilá, yes, it does what it did for you.

    I have virtually no experience with Single File Projects, but I believe if you want to refine the file type settings with single file projects, you have to select "Advanced settings" at project creation and change the settings (preserve whitespace) there. I think the Single File Projects take their default settings from the Settings you define in File->Options, so that would be where you should change the file type settings if you want that behaviour as a standard setting.

    Mind you that these single file projects are by design "vanilla projects" without customisation. If you have specific requirements you should always use a pre-defined project template, that is a very powerful feature of Trados.

    TLDR;

    At project creation, you have to set XML2 to "preserve whitespaces" in the Advanced Settings of Single File Projects or in the normal file type settings of a normal project.

    emoji


    Generated Image Alt-Text
    [edited by: RWS Community AI at 3:13 PM (GMT 0) on 27 Nov 2024]
  • Hi  
    Many thanks for your help. 
    I create multilingual project using a template and the move from 2022 to 2024 means my old XML 1 filter is obsolete and does not show in Trados 2024 so the project defaulted to the XML 2 filter. Just realized this now...
    I've adjusted the XML 2 filter and everything is back to normal now...
    Many thanks for your assistance with this. 



    emoji