Skip to main content
Inspiring
July 1, 2020
Question

Extra spaces with condition tags

  • July 1, 2020
  • 14 replies
  • 289 views

I'm using RH 2019 (reimagined), update 14, and there are extra spaces sometimes appearing before condition tags that seem impossible to remove.

 

For example, in Author view, note the extra space between InformaCast and Mobile in the following sentence: 

 

You will be redirected to a page where you will have to enter your password unless you are already logged into your account, in which case you will be immediately logged into InformaCast  Mobile Fusion.

 

The Source view looks like the following: 

 

You will be redirected to a page where you will have to enter your password unless you are already logged into your account, in which case you will be immediately logged into InformaCast <span data-condition="Others:Mobile"> Mobile</span><span data-condition="Others:Fusion"> Fusion</span>.

 

You can see that there are two spaces (one after InformaCast and one before Mobile).

 

However, when I remove that space either in Author or Source view, save it, and then view it in Preview view, it comes back. There's seemingly no way to get rid of it. However, it does not seem to be present in the actual published content (I'm using HTML5 output).

 

Elsewhere on that page, the same tags are used with no ill effects (Author view): 

 

You will be redirected to the gateway, which will return you to InformaCast Mobile Fusion once you’ve been authenticated.

 

And in Source view:

 

You will be redirected to the gateway, which will return you to InformaCast<span data-condition="Others:Mobile"> Mobile</span>
<span
data-condition="Others:Fusion"> Fusion</span> once you’ve been authenticated.

 

How do I fix this?

    This topic has been closed for replies.

    14 replies

    Peter Grainge
    Community Expert
    Community Expert
    July 2, 2020

    ... or try it in one of the sample projects.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Peter Grainge
    Community Expert
    Community Expert
    July 2, 2020

    Create a new project and copy that code in. The default tags are Online and Print, change that in the code.

     

    Does it work there?

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Inspiring
    July 2, 2020

    That has not been my experience (that it sticks) and I've also tried removing spaces in the code so that both <span> tags are right next to each other. I make changes, save, look at it from another view and they're back. 

    Peter Grainge
    Community Expert
    Community Expert
    July 2, 2020

    Using that code I get this.

     

     

    There is only one space between InformaCast and Mobile. From the code I would expect to see two as there is a space before and after the span tag but RoboHelp seems to take care of that.

     

     

    If I then remove one of those spaces it still looks correct and the removal sticks after going to preview.

     

     

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.