Reply to: ‘lines too long’ error messageJanuary 14, 2009 at 12:12 am
I'm assuming you only see this message when you switch to Plain Text view and that (given the way the script has been written) you are only running your script in TagsOn or Normal view. XMetaL Author has a maximum number of characters that it prefers to display on a single line, at which point it displays the message you are seeing.
To avoid this you should turn on Pretty Printing for your customization. This is done in the CTM file associated with your DTD or Schema by adding appropriate settings for each element that needs to be Pretty Printed (in this case, one option would be to set this for, at a minumum, your row element). A general section can also be included that controls Pretty Printing.
If you are not the person in charge of managing your XMetaL customizations please check with that person before making changes. There are cases where you may wish to intentionally disable Pretty Printing for compatibility with other software when that software does not like Pretty Printing at all or if it has specific requirements for it (some CMS or VCS systems for example).
Note: If you are working with DITA documents (which seems unlikely, though you may be adding scripts on top of our DITA customization) then to turn on Pretty Printing you can simply run the “DITA Configuration: Turn ON Pretty Printing” listed in the Macros toolbar's dropdown list. In this case pre-configured CTM files specifically designed for DITA will be enabled.
You should normally edit CTM files using XMetaL Developer, though they can be edited manually provided you do not mess up the format (they are plain text XML files). Please keep in mind that editing CTM files with XMetaL Developer 5.0 will introduce a bug specific to the Pretty Printing settings (which will be addressed in our next release). Pretty Printing settings are written out incorrectly as follows:
This needs to be manually corrected in a text editor (or by using a previous release of XMetaL Developer or XMetaL 3.1) to properly close the
To enable Pretty Printing the CTM file must also not have a
If IndentAmount and MaxLineLength are omitted they default to the values above.
With proper Pretty Printing settings enabled you should not see your issue.
The Journalist example customization that ships with XMetaL Author Enterprise has Pretty Printing turned on by default so you may wish to view the journalist.ctm file here as an example: