DITA and XMetaL Discussion

  • gcrews

    title wrapping

    Participants 3
    Replies 4
    Last Activity 11 years, 7 months ago

    Xmetal seems to keep wrapping long titles. When just using tag view the title seems ok, but in code view or in notepad there are line returns and tabs in the title tag. When we generate a CHM the compiled hhc ends up with thes line returns to witch then place  box characters in the CHM toc. I’m probably going to go tweak the toolkit but it would be nice if Xmetal did not add the line returns to the tag.  Is there some way to change the behavior of the title tag to act like a pre tag or something?

    -Thanks in advance

    Reply

    Derek Read

    Reply to: title wrapping

    The easiest thing to do would be to turn of Pretty Printing.
    See this post: http://forums.xmetal.com/index.php/topic,1104.0.html

    Reply

    gcrews

    Reply to: title wrapping

    Thanks, Yeah I found that after a bit of poking around. I looked at the ctm files and I can’t tell what is different about the pre and title prettyprintingoptions. I’m guessing Xmetal has some specific built in handling of pre and screen.

    Reply

    Derek Read

    Reply to: title wrapping

    If pretty printing is turned on the default line wrapping width (aka: max line length) is 80 characters and indenting is 2 spaces. For DITA we set to 80 characters in the CTM file so it is the same as the default setting. If you don't mind messing with the CTM file you could have Pretty Printing on but make the value bigger.

    Pretty Printing has a general section at the top of the CTM file, but then each element also has its own section where you can set things up for each element. There is a setting you can use to override the on an element by element basis called . The only element this is set for in the 6.0 releases is imagemap.

    Reply

    gcrews

    Reply to: title wrapping

    Thank you, worked like a charm, I had tried before with no luck. Pre seems to ignore the pretty printing regardless though; Xmetal must have a specific case for a few elements.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support