DITA and XMetaL Discussion
jlm05 January 19, 2012 at 2:28 pm
TOPLEAF: Codeblock text occasionally jutting into left marginJanuary 19, 2012 at 2:28 pmParticipants 6Replies 7Last Activity 10 years, 8 months ago
This seems to happen almost randomly, and fortunately not very frequently. Sometimes in the TopLeaf PDF output, the text of a codeblock will jut into the left margin. See the attached image.
It does seem to be more likely to happen within the context of list of item or task step, but again there is no consistency. The same topic may have multiple codeblocks configured exactly the same way, and all but one will display correctly.
Typically codeblocks are entered as:
I've experimented with moving the codeblock out of the paragraph for one of the instances, but that didn't have an effect.
For the same instance, I moved the paragraph to a different location, and then it displayed correctly. I moved it back, and the display was incorrect. I added an additional paragraph with a codeblock, thinking it might be because it was the last paragraph, but the new paragraph was fine and the existing one was still wrong.
Any idea what could cause this odd behavior?gjn2066 January 26, 2012 at 5:16 pm
Reply to: TOPLEAF: Codeblock text occasionally jutting into left marginJanuary 26, 2012 at 5:16 pm
Sorry for the late reply. This one sounds really odd! I think I'd need to have a look at the actual stylesheet and source to get to the bottom of it. Any chance of sending me a Zip illustrating the problem?jlm05 January 27, 2012 at 1:25 pm
Reply to: TOPLEAF: Codeblock text occasionally jutting into left marginJanuary 27, 2012 at 1:25 pm
Let me check with my boss. I believe we've sent you material before, but we were just acquired and the rules might have changed.jlm05 January 30, 2012 at 1:08 pm
Reply to: TOPLEAF: Codeblock text occasionally jutting into left marginJanuary 30, 2012 at 1:08 pm
I tried to send you the source and stylesheets, but the email bounced back. Not sure if the problem is on your end or mine.
Janicegjn2066 January 31, 2012 at 9:02 pm
Reply to: TOPLEAF: Codeblock text occasionally jutting into left marginJanuary 31, 2012 at 9:02 pmjlm05 February 1, 2012 at 1:03 pm
Reply to: TOPLEAF: Codeblock text occasionally jutting into left marginFebruary 1, 2012 at 1:03 pm
I have sent you two emails – one with the stylesheet, and another with the source files.
The email also refers to a couple of other issues I posted that you have responded to.gjn2066 February 9, 2012 at 1:30 am
Reply to: TOPLEAF: Codeblock text occasionally jutting into left marginFebruary 9, 2012 at 1:30 am
OK, I have the answer!
The cause: an internal flag is not being properly saved when processing switches between column and header/footer. For continously flowing text this normally occurs about a quarter way down from the top of page, which is why the problem appears differently when the text is changed.
This will be addressed in the XMetaL 7 plugin. But in the meantime, the workaround is to switch off the [u]Breakable box[/u] option on the codeblock box style. Since you have selected [u]Bind element content[/u] for this mapping, this will have no effect on the output.
- You must be logged in to reply to this topic.