DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › Spacing between words
-
linjinwei February 10, 2009 at 1:55 pm
Spacing between words
February 10, 2009 at 1:55 pmParticipants 1Replies 2Last Activity 13 years, 6 months agoHi all
Is it possible to create spacing between words in XMetaL? Something like this;
[code]Once upon a time [/code]
I have tried using word-spacing, padding and margin but it doesnt work.
Thanks in advance
mag3737 February 10, 2009 at 6:34 pm
Reply to: Spacing between words
February 10, 2009 at 6:34 pmFor DITA in XMetaL:
Go to Insert > Advanced > Entity Reference….
Select “-//OASIS//ELEMENTS DITA Topic//EN” from the dropdown list.
Select “nbsp” from the list (it may be the only item on the list), and click Insert.
Derek Read February 10, 2009 at 9:24 pm
Reply to: Spacing between words
February 10, 2009 at 9:24 pmYour other option would be to use an element that is designated as one where whitespace is significant. In DITA there are several such elements, including pre and codeblock. Perhaps that is what you are looking for? I would recommend that if at all possible because if you take advantage of these elements everything should “just work”, including the DITA OT. Consult the DITA Language Reference (we include a copy available via the Help menu or you can check online) for elements that should treat whitespace as being significant.
However, it sounds like you are modifying the CSS. If that is the case then the CSS properties that control whitespace rendering supported by XMetaL are:
white-space:pre
white-space:pre-wrapIf you get in this far though, and your documents are pretty printed, you may also need to set the CTM settings for pretty printing for the elements you are modifying to use the
setting (see XMetaL Developer). -
AuthorPosts
- You must be logged in to reply to this topic.