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

RoboHelp 2022: Extra paragraph marks in author view (that aren't really there)

Explorer ,
Nov 11, 2024 Nov 11, 2024

Copy link to clipboard

Copied

Hello.  I have a converted classic (2017) project; the 2022 version is Version 2022.2.22.

 

I have noticed that some (or many) topics have an extra paragraph mark in author view, but this paragraph is not there in preview mode, and the cursor in author view also indicates that it is not there.  In the example below (author view), the blank paragraph after the word "include" really is there.  The rest of them are not.  If I have my cursor after the "s" in the word Pends and press the right arrow, it skips the blank paragraph as if it wasn't there, and goes right to the P in Procedures.

 

Christine301653386cjz_1-1731353513503.png

 

The preview of the topic looks correct:

 

Christine301653386cjz_2-1731353640148.png

 

Is there something I can do to make the author view appear correctly?  The extra paragraph not appear after every item in a list - it does in this topic, but there are others where it is (seemingly) random - the first 3 items in the list might have no extra paragraph and then the 3rd and 4th do, for example.  Preview is correct and shows no blank paragraphs.

 

thanks!

Chris

Views

203

Translate

Translate

Report

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

Contributor , Nov 12, 2024 Nov 12, 2024

Does the blank space disappear if you remove the (superfluous) p-tag within each <li>-tag?

 

e.g. <li class="bulletspace"><p><b style="font-weight: bold;">Pends</b></p></li>

=> <li class="bulletspace"><b style="font-weight: bold;">Pends</b></li>

Votes

Translate

Translate
Community Expert ,
Nov 11, 2024 Nov 11, 2024

Copy link to clipboard

Copied

Flip to Code view instead of Author view to have a look at the underlying XHTML - you might see some cruft in there that's causing it. Compare the RH2022 version to the RH2017 Classic version to see any differences in that source coding.

Votes

Translate

Translate

Report

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
Explorer ,
Nov 11, 2024 Nov 11, 2024

Copy link to clipboard

Copied

There are differences, but nothing that I can tell would cause this.

 

Classic code:

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta name="template" content="COOL Procedure.htt" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="topic-status" content="Complete" />
<meta name="generator" content="Adobe RoboHelp 2017" />
<title>Title</title>
<link rel="StyleSheet" href="../cool.css" type="text/css" />
<style type="text/css">/*<![CDATA[*/
body {
}
/*]]>*/</style>
</head>
 
<body>
<?rh-script_start ?><script src="../ehlpdhtm.js" type="text/javascript" 
language="JavaScript1.2"></script><?rh-script_end ?>
<?rh-placeholder type="header" ?>
<p>&#160;</p>
<h3>Title</h3>
<p><b style="font-weight: bold;">Description:</b></p>
<p>&#160;</p>
<ul style="list-style: disc;">
<li class="bulletspace"><p><b style="font-weight: bold;">Pends</b></p></li>
<li class="bulletspace"><p><b style="font-weight: bold;">Procedures</b></p></li>
<li class="bulletspace"><p><b style="font-weight: bold;">Support Documentation</b></p></li>
<li class="bulletspace"><p><b style="font-weight: bold;">System Errors</b></p></li>
</ul>
<hr width="95%" align="center" />
<?rh-placeholder type="footer" ?>
<?rh-script_start ?><script type="text/javascript" language="JavaScript1.2">//<![CDATA[
//]]></script><?rh-script_end ?>
</body>
</html>

 

 

RoboHelp 2022 code:

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="template" content="../assets/layouts/COOL Procedure.htt" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="topic-status" content="Complete" />
<meta name="generator" content="Adobe RoboHelp 2022" />
<title>Title</title>
<link rel="StyleSheet" href="../assets/css/cool.css" type="text/css" />
<style type="text/css">
/*<![CDATA[*/
body {}
/*]]>*/
</style>
</head>
<body>
<p><br />

</p>
<h3>Title</h3>
<p><b style="font-weight: bold;">Description:</b></p>
<p> </p>
<ul class="bulletspace" style="list-style: disc;">
<li class="bulletspace">
<p><b style="font-weight: bold;">Pends</b></p>
</li>
<li class="bulletspace">
<p><b style="font-weight: bold;">Procedures</b></p>
</li>
<li class="bulletspace">
<p><b style="font-weight: bold;">Support Documentation</b></p>
</li>
<li class="bulletspace">
<p><b style="font-weight: bold;">System Errors</b></p>
</li>
</ul>
<hr align="center" width="95%" />
<script type="text/javascript" language="JavaScript1.2">
//<![CDATA[
//]]>
</script>
</body>
</html>

 

Classic has <ul style="list-style: disc;"> whereas 2022 has <ul class="bulletspace" style="list-style: disc;">

 

If I remove the red text from the 2022 version, it doesn't seem to make a difference; it still has the extra paragraph marks in author view but they do not appear in preview.

 

Classic also uses <p>&#160;</p> for the actual blank lines and 2022 uses  <p><br />

</p>

 

If I try to change 2022 to match classic with the <p>&#160;</p> code, it just changes it back to the <br> code.

 

As far as I can tell the header code looks as it should.

 

Thanks!

Chris

 

 

Votes

Translate

Translate

Report

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 ,
Nov 12, 2024 Nov 12, 2024

Copy link to clipboard

Copied

In Classic you had a blank line below Description.

<p><b style="font-weight: bold;">Description:</b></p>
<p>&#160;</p>
 
During the upgrade the second line lost the blank space code.
<p></p>
 
As you seem to have wanted that line in Classic, the code needs to be corrected.
________________________________________________________
My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.
 
Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

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 ,
Nov 12, 2024 Nov 12, 2024

Copy link to clipboard

Copied

To anyone reading this post later, ignore this reply. I misunderstood where the unwanted line was appearing.

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

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
Explorer ,
Nov 12, 2024 Nov 12, 2024

Copy link to clipboard

Copied

That might have been my wording as well.  I was just trying to find the differences in the code, and that was one area where it was different, but I did want that space to remain.

Votes

Translate

Translate

Report

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
Contributor ,
Nov 12, 2024 Nov 12, 2024

Copy link to clipboard

Copied

Does the blank space disappear if you remove the (superfluous) p-tag within each <li>-tag?

 

e.g. <li class="bulletspace"><p><b style="font-weight: bold;">Pends</b></p></li>

=> <li class="bulletspace"><b style="font-weight: bold;">Pends</b></li>

Votes

Translate

Translate

Report

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
Explorer ,
Nov 12, 2024 Nov 12, 2024

Copy link to clipboard

Copied

Yes it does.  Thank you very much!  I can remove those as I edit a topic.

Votes

Translate

Translate

Report

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 ,
Nov 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

The extra paragraph mark is correct, if confusing.

 

It represents the closing tag. So when you have p tags inside li tags, you'll get a paragraph mark for the closing p tag and another paragraph mark for the closing li tag.

 

So if we have the following html:

<li><p>My text</p>

</li>

 

Imagine a paragraph mark replacing the closing tags, like so:

<li><p>My text

 

 

Votes

Translate

Translate

Report

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
Explorer ,
Nov 20, 2024 Nov 20, 2024

Copy link to clipboard

Copied

LATEST

This is very helpful and prevented me from having to ask another question. 🙂

 

It's easy enough to remove the extra paragraph marks since they had no impact on the output, and it looks cleaner in author view.  But I noticed extra paragraph marks for at the end of drop-downs as well, that were part of a list, so this response explains that as well.  I'll expect those to just be there as something to get used to.

Votes

Translate

Translate

Report

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