Link to home
Start Free TrialLog in
Avatar of minnirok
minnirok

asked on

how to interpret a carriage return

Ok I have an XML file I'm reading through some XML library. It has got some tags like:

<something> Some text inside of here Some more text that belongs on a new line </something>

I get the string in my c++ app and I'm trying to render it now in a win32 multiline edit control.

I want to put a line break in that sentence, but store it in the XML file so when I render the string it comes out like:

Some text inside of here
Some more text that belongs on a new line

What do I need to put in the XML document for it to interpret the carriage return?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of grg99
grg99

it's not a great idea to put fixed length line breaks in.

What if:

(1)  The user switches the screen to 640x480 mode?  Or 2048x 1760?

(2)  They select "Use large fonts"

(3)  They select "33 dpi" or "120 dpi".

(4)  They change the default system font to 32-point Agamemnon-Italic?

Avatar of minnirok

ASKER

Agreed, but I just need to put the breaks in for now,

Thanks