如何在 .wxl 文件中的字符串的本地化值中插入换行符? [英] How can I insert a newline in a localized value for a String in a .wxl file?

查看:17
本文介绍了如何在 .wxl 文件中的字符串的本地化值中插入换行符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 .wxl 文件来自定义 WixUI_FeatureTree 中各种对话框中的文本.如何插入换行符?

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

这不起作用:

<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>

如果我尝试这样做,我会在对话框的文本中得到\r\n".

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

推荐答案

我没有这种特殊用途的经验,但您也许可以使用实体,例如

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

这篇关于如何在 .wxl 文件中的字符串的本地化值中插入换行符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆