Skip to main content
Inspiring
Apr 10, 2012 2:29 PM UTC
Question

Extra bold text?

Hi,

I create a WebHelp with RH 9. It is a new project which was created in RH 9.

The text contains words in bold (like this). Some short lines (style Normal like the text) are also bold. These lines are not headlines, but they should be highlighted in bold (see below).

To add bold I use the bold button of RH. When I generate the WebHelp and open it in Firefox (currently version 11), then words within a text and the short bold line look different ?! The single word appears extra bold and the line appears normal bold.

The genereated HTML looks like:

for a word: <span style="font-weight: bold;"><b>word in bold</b></span>

for the short line: <p style="font-weight: bold;">line in bold</p>

When I switch to the HTML view in RH it looks like:

for a word: <span style="font-weight: bold;">word in bold</span>

for the short line: <p style="font-weight: bold;">line in bold</p>

Why does the generation procedure handle bold things different? And why does it add the <b> tag for words within a longer text? I don't want to create a special style sheet for bold words when there is a button to make a word bold.

Can someone explain that?

Regards

DannyH

This topic is closed to new replies. Start a new post to keep the conversation going.

31 replies

Known Participant
Jun 18, 2014 7:50 AM UTC

I seem to have the same problem with RH9 and my solution is to replace the <span style="font-weight: bold;"> and </span> tags with <b> and </b> because it did not happen everywhere and I did not mind handling the issue manually.

Translate
The_Real_Mike73
Inspiring
May 29, 2012 10:18 AM UTC

I added this to my CSS and it fixed it right up:

b{

font-weight:bold;

}

Translate
Peter Grainge
Community Expert
Community Expert
May 29, 2012 10:38 AM UTC

Interesting, so Danny wasn't the only one with this problem.

Thanks for posting a solution Mike.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Translate
Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Willam van Weelden
Inspiring
Apr 11, 2012 6:36 PM UTC

Hi,

I just did a quick test on RH9 and Robo inserts the span as wel as the for the span and the paragraph in my case. Is there a special routine you use for making bold paragraphs? I fiddled with several settings, but I could not get the result you describe.

Greet,

Willam

Translate
DannyH_Author
Inspiring
Apr 12, 2012 8:08 AM UTC

Hi Willam,

yes, RH9 inserts span. This is correct. Now generate a WebHelp and open this in a browser like Firefox 11. The single word within a text appears super bold and the bold paragraph appears normal bold. Right click into the text shown in the browser and display the HTML code. Now you see <span><b>word</b></span> (= super bold) and <span>paragraph</span> (normal bold).

Regards

DannyH

Translate
Willam van Weelden
Inspiring
Apr 13, 2012 5:11 PM UTC

Mmmh, I tested on two different RoboHelp installations. On one installation, I don't get the result you describe. On the other installation I do get the HTML code you describe, but I don't see any difference in bold text in the output. I must be going nuts...

Could your CSS be interfering somehow by adding a 'font-weight: bolder;' to the <b> element? I will test some more to see what makes the difference.

Greet,

Willam

Translate