Xslt 和多行文本 (Sitecore)
我在项目(多行文本)中有一个字段,我在 xslt 渲染中输出该字段。问题是 carrigae 返回未显示在我的输出中 - 我需要做什么才能使我的 xslt 输出显示 carrigae 返回?
I have a field in item (multi-line text) which i output in my xslt rendering. The problem is that carrigae return are not shown in my output - what do i need to do to make my xslt output show the carrigae returns?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用此模板替换换行符:
并在您的文本项上调用它,如下所示:
Use this template to substitude newlines:
And call it upon your text item like this:
XML 源中的回车符将被视为空格而被忽略。 (实际上,所有连续的空白字符都被压缩为一个空格。)但是,也许其中之一可以代替普通的回车符?
或者
A carriage return in XML source is ignored as whitespace. (Really, all consecutive whitespace characters are condensed to one space.) However, perhaps one of these will work instead of a plain carriage return?
Or