🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

[SOLVED] Write Message with newlines that work for ms notepad

User: "tennenrishin"
New Altair Community Member
Updated by Jocelyn
How can I get the Write Message operator to put newlines in the file, in a way that could be understood by Microsoft Notepad.
Is there a certain encoding I should use?
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.3.005">
 <context>
   <input/>
   <output/>
   <macros/>
 </context>
 <operator activated="true" class="process" compatibility="5.3.005" expanded="true" name="Process">
   <process expanded="true">
     <operator activated="true" class="write_message" compatibility="5.3.005" expanded="true" height="60" name="Write Message" width="90" x="179" y="75">
       <parameter key="file" value="C:\Users\isak\Desktop\a.txt"/>
       <parameter key="text" value="the&#10;quick&#10;brown&#10;fox"/>
     </operator>
     <portSpacing port="source_input 1" spacing="0"/>
     <portSpacing port="sink_result 1" spacing="0"/>
   </process>
 </operator>
</process>

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "MariusHelf"
    New Altair Community Member
    Hi,

    that's currently not possible. As a workaround I can suggest you Notepad++, a third-party text editor which is also lightweight, but way more powerful than MS notepad.
    Anyway, I have created an internal ticket.

    Best regards,
    Marius
    User: "aborg"
    New Altair Community Member
    As a workaround you can replace the &#10; parts in the text part in the xml with &#13;&#10; and apply the changes. (Maybe macros would also work, I am not sure.)
    User: "tennenrishin"
    New Altair Community Member
    OP
    That works, and it even retains the carriage returns when the text is edited in the GUI editor!

    Just one thing to be careful about when appending to lines in the editor: Be sure to position the insertion point before the carriage return character, not after. Even though these look like the same place, they are separated by an invisible character that can be traversed using arrow keys. Otherwise the carriage return can become separated from the line feed.