DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion TOPLEAF: Codeblock text occasionally jutting into left margin

  • jlm05

    TOPLEAF: Codeblock text occasionally jutting into left margin

    Participants 6
    Replies 7
    Last 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:

    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?

    Reply

    gjn2066

    Reply to: TOPLEAF: Codeblock text occasionally jutting into left margin

    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?

    Reply

    jlm05

    Reply to: TOPLEAF: Codeblock text occasionally jutting into left margin

    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.

    Reply

    jlm05

    Reply to: TOPLEAF: Codeblock text occasionally jutting into left margin

    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.

    Janice

    Reply

    gjn2066

    Reply to: TOPLEAF: Codeblock text occasionally jutting into left margin

    Either [email protected] or [email protected] should be OK. Try again with the other one, and make sure your attachments aren't >5MB.

    Reply

    jlm05

    Reply to: TOPLEAF: Codeblock text occasionally jutting into left margin

    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.

    Reply

    gjn2066

    Reply to: TOPLEAF: Codeblock text occasionally jutting into left margin

    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.

    Reply

    jlm05

    Reply to: TOPLEAF: Codeblock text occasionally jutting into left margin

    Looks like it works – Thanks so much!

    Janice

    Reply

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

Lost Your Password?

Products
Downloads
Support