Skip to main content
Deepti_Korwar
Participating Frequently
April 20, 2011
Question

The extra space created due to Conditional Build Tags

  • April 20, 2011
  • 1 reply
  • 727 views

Hello,

I am authoring a online help file, for a web application. As different content is needed for the 4 different roles of the user, I have used Single Sourcing option and made use of conditional build tags for the content that is not common among the different roles. I even have images which are difffernt for the differnt roles. I have used conditional build tags for these too. The problem is that, extra space appears in place of the images which are not applicable to build I am publishing. Is there any workaround other than modifying the HTML files to remove the extra space added?

Regards,

Deepti Korwar

    This topic has been closed for replies.

    1 reply

    Peter Grainge
    Community Expert
    Community Expert
    April 20, 2011

    I am wondering if you need to modify what you have applied the tag to. Maybe there is some space that needs to be tagged out as well?


    See www.grainge.org for RoboHelp and Authoring tips

    @petergrainge

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Deepti_Korwar
    Participating Frequently
    April 20, 2011

    Hello Peter,

    I have a numbered list. For one of the steps, I need to include an image. As the image is different for different roles. I have placed them one below the other and applied conditional build tags.As the list is indented a bit, I have moved the images to the right by adding spaces. Could that be the problem? Is it possible to tag spaces?

    Thanks,

    Deepti

    CraigCC
    Inspiring
    April 20, 2011

    hi Deepti,

    I have seen this issue on multi-level lists (in RH9) when using soft returns (Shift-Enter) within the lists.

    An extra space is added before images marked with CBTs. But this only caused problems in print.

    Are you seeing this space on all outputs or just print?

    Can you paste a code snippet from one of the offending list?

    Perhaps you can get round this by opening up the HTML tab and carefully examining and perhaps moving the CBTs.

    e.g. <?rh-cbt_start condition="xyz" ?><img src="xyz"  > <?rh-cbt_end ?></p><?rh-list_end ?>

    Will be helpful to see the code.

    thanks

    Craig