Skip to main content
Known Participant
August 16, 2021
Question

Paragraph returns not recognized when importing Word doc in RH2020

  • August 16, 2021
  • 15 replies
  • 427 views

Hello RH Community,

We just upgraded and find that RH2020 is not recognizing most paragraph returns when importing Word documents. After completing a paragraph, we normally would hit Enter 2x. One to get to the next line and another to create a space between paragraphs. We are finding that RH2020 is not recognizing the paragraph return so there is no space in between the paragraphs. It also happens between other styles.  We tried just increasing the spacing after or before the styles. But this would require us to have a different Word document version for RH; one without paragraph returns. Is there a RH tool for paragraph formats for before/after spacing where RH would keep on ignoring where there is a paragraph return in Word but provide spacing before or after the paragraph? This would happen within RH after importing the Word document. It might be difficult to get people to change how they naturally create paragraph spacing in Word. Your help trying to find a solution would be greatly appreciated.  Thank you!

This topic has been closed for replies.

15 replies

Peter Grainge
Community Expert
Community Expert
August 23, 2021

If that works to your satisfaction, that's fine. What I have done is actually correcting the import error.

 

When you import after the bug is fixed, you shouldn't need either fix.

________________________________________________________
See www.grainge.org for free Authoring and RoboHelp Information

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Ken in DCAuthor
Known Participant
September 8, 2021

What we ended up doing is adjusting the padding in the P style within RH to 7 pt. The P is the paragraph return style I beleive.  It creates a space and you only need to do it once.  We are looking forward to the new updates.

 

Thank you!

 

Ken

Peter Grainge
Community Expert
Community Expert
August 20, 2021

I am advised that the bug in the main Find and Replace will be fixed in Update 6, meantime use the in topic F&R.

________________________________________________________
See www.grainge.org for free Authoring and RoboHelp Information

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
August 20, 2021

In a simple test this seems to work.

 

Go to Source View for the topic(s) and press CTRL F so that you get the search panel at the bottom of the topic.

 

 

For some reason the same find and replace in the main Find and Replace panel does not find the empty P tag. I will report that.

 

It then seems to generate OK.

________________________________________________________
See www.grainge.org for free Authoring and RoboHelp Information

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
August 20, 2021

RH-9946 | Tracker (adobe.com)

________________________________________________________
See www.grainge.org for free Authoring and RoboHelp Information

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
August 20, 2021

Ah! Import OK but lost on generation. I think I will report that as a bug. 

________________________________________________________
See www.grainge.org for free Authoring and RoboHelp Information

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
August 20, 2021

Blank lines in Word imported OK in this 2020 test.

 

________________________________________________________
See www.grainge.org for free Authoring and RoboHelp Information

 

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
August 20, 2021

I just saw your second post. So the import process is where the problem is. I'll take another look.

________________________________________________________
See www.grainge.org for free Authoring and RoboHelp Information

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
August 20, 2021

Both seem to work OK in RoboHelp but behind the scenes I have been in contact with @Ken in DC and he believes he has resolved the issue.

________________________________________________________
See www.grainge.org for free Authoring and RoboHelp Information

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Ken in DCAuthor
Known Participant
August 23, 2021

Hi Peter,

My apologizes for not getting back to you sooner.  I was out of the office Thursday and Friday last week.

I am not sure the issue is totally resolved. But we think we are making progress.  The testing you did confirmed the bug or issue. Thank you! But we are testing a work-around.  After Word import, spacing is added back if you add padding of just 1 px to the style where the problem is. Please see the graphic below. We are just testing it now and not sure if this works for everywhere there is a problem. But we think it is good progress.  We will also test the Find & Replace work-around you suggested.  

Thank you again,

Ken

 

 

Community Expert
August 20, 2021

I've just been testing importing a few Word documents into Rh2020.5 and included a few blank paragraphs for testing.

 

Interestingly, if I import, then generate without editing an imported topic, the blank paragraphs are blank in the html sense, and are ignored (as expected).

 

If I edit an imported topic, then generate, the blank paragraphs have a non-breaking-space inserted, and show up in the output (also as expected, because now the paragraph is not "blank", it contains a space).

 

 

Community Expert
August 20, 2021

html typically ignores blank space such as multiple space characters or multiple empty paragraphs.

 

I'd recommend creating a stylesheet in Robohelp and mapping your Word styles to the css styles.

 

You would include margin values to add space above or below (or both) the styles that need it.

 

e.g.

p {

    margin-top: 0.5em;

    margin-bottom: 0.5em;

}