General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Whitspaces not appearing in view
sethim September 8, 2010 at 1:42 pm
Whitspaces not appearing in viewSeptember 8, 2010 at 1:42 pmParticipants 0Replies 1Last Activity 12 years, 6 months ago
I've set the 'PreserveSpace' in GlobalPrettyPrintOptions as well as in Element's PrettyPrintOptions but only one whitespace character gets visible in editor mode even though there are continuous multiple spaces which are visible if I switch the document to plain text view.
Is there any other setting which I need to set ?
we're using Xmax version 6.0
MDerek Read September 8, 2010 at 5:18 pm
Reply to: Whitspaces not appearing in viewSeptember 8, 2010 at 5:18 pm
Two issues with what you are doing:
section of the CTM file does not support the setting. It is allowed in the per-element settings only.
setting only controls pretty printing. It does not affect the rendering of Tags On or Normal views. For that you must set the CSS “white-space” setting to something appropriate, probably “pre” in your case.
XMetaL Developer should guide you in the proper creation of your CTM file, at least letting you get the right settings in there. I assume this means you are editing your CTM file directly with a text editor of some kind. You should be careful not to introduce anything that is unrecognized and that the format is good (at the very least always well formed). For the most part XMetaL Author and XMAX are forgiving when they see something in your CTM that they do not understand, but you could end up causing unexpected behavior as we do not test every possible incorrect combination of options or invalid files.
- You must be logged in to reply to this topic.