DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › TOPLEAF: Codeblock text occasionally jutting into left margin
-
jlm05 January 19, 2012 at 2:28 pm
TOPLEAF: Codeblock text occasionally jutting into left margin
January 19, 2012 at 2:28 pmParticipants 6Replies 7Last Activity 11 years agoThis 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:
Intro text:
code content 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 margin
January 26, 2012 at 5:16 pmSorry 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 margin
January 27, 2012 at 1:25 pmLet 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 margin
January 30, 2012 at 1:08 pmI tried to send you the source and stylesheets, but the email bounced back. Not sure if the problem is on your end or mine.
Janice
gjn2066 January 31, 2012 at 9:02 pm
Reply to: TOPLEAF: Codeblock text occasionally jutting into left margin
January 31, 2012 at 9:02 pmEither [email protected] or [email protected] should be OK. Try again with the other one, and make sure your attachments aren't >5MB.
jlm05 February 1, 2012 at 1:03 pm
Reply to: TOPLEAF: Codeblock text occasionally jutting into left margin
February 1, 2012 at 1:03 pmI 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 margin
February 9, 2012 at 1:30 amOK, 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.
-
AuthorPosts
- You must be logged in to reply to this topic.