![]() |
Preserve Line Breaks from XML |
Post Reply
|
| Author | |
justinw
Admin Group
Joined: 08 Dec 2011 Posts: 157 |
Post Options
Quote Reply
Topic: Preserve Line Breaks from XMLPosted: 14 Dec 2011 at 9:40am |
|
Q: Within my XML, I have some text that contains multiple line breaks that I wish to maintain in my output. Is it possible to have these line breaks reflected in my output, and if so, how do I implement this in the Designer?
A: Yes this is achievable in the TEXT view of the XF Designer, and the correct method is to use the attribute (linefeed-treatment="preserve") on the parent fo:block of where your field is inserted. For example, if I have the following XML: <auto>
</auto> I would want to use the following code in my template: <fo:block linefeed-treatment="preserve">
</fo:block> For more information on this usage, please visit: Edited by justinw - 14 Dec 2011 at 10:24am |
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |