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.
The preview of the topic looks correct:
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
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>
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.
Copy link to clipboard
Copied
There are differences, but nothing that I can tell would cause this.
Classic code:
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> </p> for the actual blank lines and 2022 uses <p><br />
</p>
If I try to change 2022 to match classic with the <p> </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
Copy link to clipboard
Copied
In Classic you had a blank line below Description.
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.
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.
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>
Copy link to clipboard
Copied
Yes it does. Thank you very much! I can remove those as I edit a topic.
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¶
¶
Copy link to clipboard
Copied
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.