Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Conditional tags throw off spacing in HTML output

New Here ,
Feb 25, 2010 Feb 25, 2010

Hi, we use conditional tags to mark text to be hidden/shown when generated.

The marked text displays in html help as though there’s no space between the words “Customer” and “Definiton”:

online help.gif

In the source file (below), I can see that there's a space that isn't tagged, but when we look at the output of this page, suddenly there's no space. Please see attached for images that show what we're dealing with.

RH source page.gif

Any ideas as to what's going on here? I wondered if it had something to do with bolded words, since the other tags of the same or similar non-bolded words were displaying correctly.

Has anyone experienced this before?

1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 27, 2010 Feb 27, 2010

Try replacing the space that is between the span tags with a non breaking space as shown at http://www.w3schools.com/HTML/html_entities.asp


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Translate
LEGEND ,
Feb 26, 2010 Feb 26, 2010

Can you post the code from the HTML tab so we can see what is happening. I suspect you are right in that the different tags are getting confused but it is hard to say definitively without the underlying code.


  • Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
  • Follow the RoboColum(n) on Twitter
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 26, 2010 Feb 26, 2010

Here is the section with the problem (sorry, image doesn't show up very large so I tried to resize it):

code for colum.gif

Please let me know if you need to see more. Thanks for looking at this, Colum.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 27, 2010 Feb 27, 2010

Try replacing the space that is between the span tags with a non breaking space as shown at http://www.w3schools.com/HTML/html_entities.asp


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 17, 2010 Mar 17, 2010

Peter, even with adding the non-breaking space as you suggested, it's not working. Now, it adds a second space (see below). From a couple of other discussions ("Intermittently missing the space after bolded text", "Losing space after image" etc) I can see that this may be a bug with version 7.

using nbsp as peter suggested.jpg

Sorry it took me a while to respond -- we got busy and I couldn't generate until yesterday.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 17, 2010 Mar 17, 2010

What happens if you move the space from between the closing span tag and the next span tag to in front of Definition?


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 17, 2010 Mar 17, 2010

Adding a " " between the span tags and using it to take the space between the span tags doesn't seem to work.

We're new to using the conditional tags on text, so this problem is new to us. Before, we used conditional tags to hide certain pages during generation, but now with hiding/showing bolded text on the page, this spacing issue is coming up.

I wonder if we have to upgrade to RH version 8 just to avoid this problem...? If this was a bug in version 7, that may be our only option to address the problem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 23, 2010 Mar 23, 2010

In the "Intermittently missing the space after bolded text" post, one person suggested unmarking "W3C compliant topics" (below), but we don't use that setting -- I just checked.

Old post:

Re: RoboHelp 7 - Intermittently missing the space after bolded text in

The easiest way to solve this issue is not to enable the option "W3C compliant topics" when generating the webhelp output. If you do this, you may get the "married words" issue. I have also experienced this problem, as well as other work mates, and it was solved disabling the "W3C compliant topics" option.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Mar 24, 2010 Mar 24, 2010

You said: "Peter, even with adding [my emphasis] the non-breaking space as you suggested..." However, Peter suggested replacing the space with the HTML code element, not adding.

Did you replace or add?

Good luck,

Leon

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 24, 2010 Mar 24, 2010
LATEST

Thanks for making me go back, Leon. I think I did add the code vs replacing the space with the code. It's fixed now!

I apologize for my confusion. Thank you all for your help and expertise.

Amity

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp