Hi,
I have XMetaL Author Essential 5.5 and have been editing the CTM file so that I get indentation in the text view. It seems to work on everything except Tables:
When I create a table in tag view and go into text view I see this:
<TABLE border="1"><TR><TD></TD></TR></TABLE>
I then have to place spaces in between the elements in order to trigger the indentation:
<TABLE border="1"> <TR> <TD> </TD> </TR> </TABLE>
Once I switch back to text view the table is nicely indented:
<TABLE border="1">
<TR>
<TD> </TD>
</TR>
</TABLE>
If it helps here is the section in the CTM file that specifies how the Table should be formatted:
<ElementProperties>
<Name>TABLE</Name>
<LongDescription>Table</LongDescription>
<PrettyPrintOptions> <NewLineBeforeStartTag/> <NewLineBeforeEndTag/>
<IndentContent/>
</PrettyPrintOptions>
</ElementProperties>
<ElementProperties>
<Name>TD</Name>
<LongDescription>Cell in the body of a table</LongDescription>
<PrettyPrintOptions> <NewLineBeforeStartTag/> <IndentContent/>
</PrettyPrintOptions>
</ElementProperties>
<ElementProperties>
<Name>TR</Name>
<LongDescription>Table row</LongDescription>
<PrettyPrintOptions>
<NewLineBeforeStartTag/>
<NewLineBeforeEndTag/>
<IndentContent/>
</PrettyPrintOptions>
</ElementProperties>
It must be something to do with my CTM file as the Journalist template has no problems formatting Table elements.
Thanks