DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › TOPLEAF: Large space added in front of choicetable
-
jlm05 April 18, 2012 at 2:25 pm
TOPLEAF: Large space added in front of choicetable
April 18, 2012 at 2:25 pmParticipants 3Replies 4Last Activity 10 years, 9 months agoIn the TopLeaf output, there is a large space added in front of choicetables (see the attached images).
I don't see any reason for this extra space. choicetables just inherit the current table style, and I'm not seeing the extra space in front of other tables.
There also is no extra space added after cmd tags.
Also attached is the XML of the topic used to generate the example, and the excerpt from the log file where the choicetable is inserted.
gjn2066 April 20, 2012 at 3:26 pm
Reply to: TOPLEAF: Large space added in front of choicetable
April 20, 2012 at 3:26 pmI ran the attached XML on a default stylesheet and no extra space was generated. This probably (but not certainly) means the space is related to one of your mappings. If you can send me your stylesheet (contents of the folder containing mapman.def but excluding subfolders), I'll run your sample against that.
Geoff
gjn2066 April 21, 2012 at 5:15 am
Reply to: TOPLEAF: Large space added in front of choicetable
April 21, 2012 at 5:15 amRan against the supplied stylesheet. Your chhead mapping specifies a 4.5pc vertical space.
jlm05 April 23, 2012 at 11:36 am
Reply to: TOPLEAF: Large space added in front of choicetable
April 23, 2012 at 11:36 amThanks! I wouldn't have thought to look at the space below setting for the heading row…. but it worked!
gjn2066 April 23, 2012 at 9:25 pm
Reply to: TOPLEAF: Large space added in front of choicetable
April 23, 2012 at 9:25 pmBecause the choicetable fits neither the CALS nor HTML table models, it is implemented as a custom table. This means that the element mappings simply grab their content and store them with internal table wrappers. At the end of the choicetable all the stored table elements are emitted as a single unit.
And because the table is only emitted at the very end, but any vertical space requested by the original elements is processed immediately, the space always appears above the table. For this reason we do not usually have our choicetable elements specify any formatting directly.
-
AuthorPosts
- You must be logged in to reply to this topic.