Output text file with trailing carriage return

I'm trying to use Appian (on premise Linux version) to output a text file that has a trailing CR at the end of each line and a CR + LF inserted between each line. I've attached a sample file from an alternate source that i am trying to replicate

I'm trying combinations of char 10 and char 13 but i can't achieve my goal any suggestions?

sample2.dat

OriginalPostID-229415

OriginalPostID-229415

  Discussion posts and replies are publicly visible