Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I insert a newline in a localized value for a String in a .wxl file?

I'm using a .wxl file to customize the text in the various dialogs in WixUI_FeatureTree. How can I insert a newline?

This doesn't work:

<WixLocalization Culture="en-us" xmlns="http://schemas.microsoft.com/wix/2006/localization">
  <String Id="WelcomeDlgTitle">{\WixUI_Font_Bigger}Welcome to the Setup Wizard for\r\n[ProductName]</String>
</WixLocalization>

If I try that, I get "\r\n" in the text in the dialog.

like image 532
Cheeso Avatar asked Nov 22 '09 23:11

Cheeso


2 Answers

I don't have experience of this particular use but you might be able to use entities, e.g.

First Line&#13;&#10;Second Line
like image 165
tyranid Avatar answered Nov 19 '22 17:11

tyranid


This is what worked for me on WIX 3.5:

First Line&#xD;&#xA;&#x9;Second Line
like image 1
Pavan Avatar answered Nov 19 '22 16:11

Pavan