Lost multilevel CSS formatting after RoboHelp 2017 to RoboHelp 2019.12 upgrade
Upgraded a project from RoboHelp 2017 to RoboHelp 2019.12 New. After the 2019 Classic to 2019 New step in the upgrade process, I lost the multilevel list formatting in my topics.
BEFORE:
1. This is my first outline level 1 step.
a. This is my first outline level 2 step.
b. This is my second outline level 2 step.
i. This is my first outline level 3 step.
ii. This is my second outline level 3 step.
2. This is my second outline level 1 step.
AFTER:
1. This is my first outline level 1 step.
1. This is my first outline level 2 step.
2. This is my second outline level 2 step.
1. This is my first outline level 3 step.
2. This is my second outline level 3 step.
2. This is my second outline level 1 step.
In the 2017/2019 Classic instances of my project, multilevel list CSS styles are defined for 9 levels - using rh-list (named, "Standard") with 9 x-lvl params. In the 2019 New upgraded instance of my project, RoboHelp converted/replaced the rh-list.Standard (presumably to make it "true" HTML5/CSS3 compliant) in my CSS with a bunch of new ol.Standard styles for each level. I've included the relevant CSS from 2017/2019 Classic and 2019 New below.
I've also included mockups of what the HTML code for a multilevel list in a topic looks like at each step of the upgrade process below. By comparing the "before" and "after" HTML in one of the topics, it looks like the upgrade changed ol style="<name of my CSS outline level>" to simply ol class="p" for ALL my steps, regardless of level.
Is there a simple or automated way to restore the correct multilevel formatting for all my topics in 2019 New - either via the upgraded CSS or before the upgrade (for example, run multiple find and replace processes for each of the 9 levels to prep the topics, assuming that can be done without mucking up the restart/continue numbering instances that already exist in the topics. Ugh.).
ROBOHELP 2017/2019 CLASSIC
CSS
rh-list.Standard {
x-lvl-2-type: lower-alpha;
x-lvl-3-type: lower-roman;
x-lvl-8-type: lower-alpha;
x-lvl-8-margin: 140px;
x-lvl-7-format: "<x>.";
x-lvl-7-margin: 120px;
x-lvl-9-type: lower-roman;
x-lvl-9-margin: 160px;
x-lvl-1-format: "<x>.";
x-lvl-2-format: "<x>.";
x-lvl-3-format: "<x>.";
x-lvl-4-type: disc;
x-lvl-4-format: "<x>";
x-lvl-5-type: circle;
x-lvl-5-format: "<x>";
x-lvl-6-type: square;
x-lvl-6-format: "<x>";
x-lvl-1-margin: 40px;
x-lvl-1-text-indent: -20px;
x-lvl-1-p-tag: p;
x-lvl-2-margin: 60px;
x-lvl-2-text-indent: -20px;
x-lvl-2-p-tag: p;
x-lvl-3-margin: 80px;
x-lvl-3-text-indent: -20px;
x-lvl-3-p-tag: p;
x-lvl-4-margin: 100px;
x-lvl-4-text-indent: -20px;
x-lvl-4-p-tag: p;
x-lvl-5-margin: 120px;
x-lvl-5-text-indent: -20px;
x-lvl-5-p-tag: p;
x-level-count: 9;
x-lvl-6-margin: 140px;
x-lvl-6-text-indent: -20px;
x-lvl-6-p-tag: p;
}
SAMPLE TOPIC CODE VIEW
<ol style="list-style: decimal;">
<li class="p"><p>This is my first outline level 1 step.</p>
<ol style="list-style: lower-alpha;">
<li class="p"><p>This is my first outline level 2 step.</p></li>
<li class="p"><p>This is my second outline level 2 step.</p>
<ol style="list-style: lower-roman;">
<li class="p"><p>This is my first outline level 3 step.</p></li>
<li class="p"><p>This is my second outline level 3 step.</p></li>
</ol></li>
</ol></li>
<li class="p"><p>This is my second outline level 1 step.</p>
SAMPLE TOPIC WYSIWYG + GENERATED OUTPUT VIEW
1. This is my first outline level 1 step.
a. This is my first outline level 2 step.
b. This is my second outline level 2 step.
i. This is my first outline level 3 step.
ii. This is my second outline level 3 step.
2. This is my second outline level 1 step.
ROBOHELP 2019.12 NEW (After upgrading the project from RoboHelp 2019 Classic)
CSS
ol.Standard {
--prefix-size: 30.0px;
--prefix-fixed-size: 0;
--prefix-gap: 20px;
--list-indent: 40px;
--vertical-spacing: 0px;
list-style: none;
counter-reset: item1;
padding-left: var(--prefix-size);
margin-left: calc(var(--list-indent) - var(--prefix-size));
}
ol.Standard>li {
--prefix-size: 30.0px;
--prefix-fixed-size: 0;
--prefix-gap: 20px;
--list-indent: 40px;
--vertical-spacing: 0px;
position: relative;
margin-top: calc(var(--vertical-spacing) / 2);
margin-bottom: calc(var(--vertical-spacing) / 2);
}
ol.Standard>li:before {
counter-increment: item1;
content: counter(item1, decimal)".";
text-align: right;
position: absolute;
left: calc(-1 * var(--prefix-size) - var(--prefix-gap));
margin-right: var(--prefix-gap);
width: var(--prefix-size);
overflow: hidden;
}
ol.Standard>li>ol {
--prefix-size: 30.0px;
--prefix-fixed-size: 0;
--prefix-gap: 20px;
--list-indent: 20px;
--vertical-spacing: 0px;
list-style: none;
counter-reset: item2;
padding-left: var(--prefix-size);
margin-left: calc(var(--list-indent) - var(--prefix-size));
}
ol.Standard>li>ol>li {
--prefix-size: 30.0px;
--prefix-fixed-size: 0;
--prefix-gap: 20px;
--list-indent: 20px;
--vertical-spacing: 0px;
position: relative;
margin-top: calc(var(--vertical-spacing) / 2);
margin-bottom: calc(var(--vertical-spacing) / 2);
}
ol.Standard>li>ol>li:before {
counter-increment: item2;
content: counter(item2, lower-alpha)".";
text-align: right;
position: absolute;
left: calc(-1 * var(--prefix-size) - var(--prefix-gap));
margin-right: var(--prefix-gap);
width: var(--prefix-size);
overflow: hidden;
}
ol.Standard>li>ol>li>ol {
--prefix-size: 30.0px;
--prefix-fixed-size: 0;
--prefix-gap: 20px;
--list-indent: 20px;
--vertical-spacing: 0px;
list-style: none;
counter-reset: item3;
padding-left: var(--prefix-size);
margin-left: calc(var(--list-indent) - var(--prefix-size));
}
ol.Standard>li>ol>li>ol>li {
--prefix-size: 30.0px;
--prefix-fixed-size: 0;
--prefix-gap: 20px;
--list-indent: 20px;
--vertical-spacing: 0px;
position: relative;
margin-top: calc(var(--vertical-spacing) / 2);
margin-bottom: calc(var(--vertical-spacing) / 2);
}
ol.Standard>li>ol>li>ol>li:before {
counter-increment: item3;
content: counter(item3, lower-roman)".";
text-align: right;
position: absolute;
left: calc(-1 * var(--prefix-size) - var(--prefix-gap));
margin-right: var(--prefix-gap);
width: var(--prefix-size);
overflow: hidden;
}
ol.Standard>li>ol>li>ol>li>ol {
--prefix-size: 26.0px;
--prefix-fixed-size: 0;
--prefix-gap: 20px;
--list-indent: 20px;
--vertical-spacing: 0px;
list-style: disc;
padding-left: var(--prefix-size);
margin-left: calc(var(--list-indent) - var(--prefix-size));
}
ol.Standard>li>ol>li>ol>li>ol>li>ol {
--prefix-size: 26.0px;
--prefix-fixed-size: 0;
--prefix-gap: 20px;
--list-indent: 20px;
--vertical-spacing: 0px;
list-style: circle;
padding-left: var(--prefix-size);
margin-left: calc(var(--list-indent) - var(--prefix-size));
}
ol.Standard>li>ol>li>ol>li>ol>li>ol>li>ol {
--prefix-size: 26.0px;
--prefix-fixed-size: 0;
--prefix-gap: 20px;
--list-indent: 20px;
--vertical-spacing: 0px;
list-style: square;
padding-left: var(--prefix-size);
margin-left: calc(var(--list-indent) - var(--prefix-size));
}
ol.Standard>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol {
--prefix-size: 30.0px;
--prefix-fixed-size: 0;
--prefix-gap: 4px;
--list-indent: -20px;
--vertical-spacing: 0px;
list-style: none;
counter-reset: item7;
padding-left: var(--prefix-size);
margin-left: calc(var(--list-indent) - var(--prefix-size));
}
ol.Standard>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li {
--prefix-size: 30.0px;
--prefix-fixed-size: 0;
--prefix-gap: 4px;
--list-indent: -20px;
--vertical-spacing: 0px;
position: relative;
margin-top: calc(var(--vertical-spacing) / 2);
margin-bottom: calc(var(--vertical-spacing) / 2);
}
ol.Standard>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li:before {
counter-increment: item7;
content: counter(item7, decimal)".";
text-align: right;
position: absolute;
left: calc(-1 * var(--prefix-size) - var(--prefix-gap));
margin-right: var(--prefix-gap);
width: var(--prefix-size);
overflow: hidden;
}
ol.Standard>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol {
--prefix-size: 30.0px;
--prefix-fixed-size: 0;
--prefix-gap: 4px;
--list-indent: 20px;
--vertical-spacing: 0px;
list-style: none;
counter-reset: item8;
padding-left: var(--prefix-size);
margin-left: calc(var(--list-indent) - var(--prefix-size));
}
ol.Standard>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li {
--prefix-size: 30.0px;
--prefix-fixed-size: 0;
--prefix-gap: 4px;
--list-indent: 20px;
--vertical-spacing: 0px;
position: relative;
margin-top: calc(var(--vertical-spacing) / 2);
margin-bottom: calc(var(--vertical-spacing) / 2);
}
ol.Standard>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li:before {
counter-increment: item8;
content: counter(item8, lower-alpha)".";
text-align: right;
position: absolute;
left: calc(-1 * var(--prefix-size) - var(--prefix-gap));
margin-right: var(--prefix-gap);
width: var(--prefix-size);
overflow: hidden;
}
ol.Standard>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol {
--prefix-size: 30.0px;
--prefix-fixed-size: 0;
--prefix-gap: 4px;
--list-indent: 20px;
--vertical-spacing: 0px;
list-style: none;
counter-reset: item9;
padding-left: var(--prefix-size);
margin-left: calc(var(--list-indent) - var(--prefix-size));
}
ol.Standard>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li {
--prefix-size: 30.0px;
--prefix-fixed-size: 0;
--prefix-gap: 4px;
--list-indent: 20px;
--vertical-spacing: 0px;
position: relative;
margin-top: calc(var(--vertical-spacing) / 2);
margin-bottom: calc(var(--vertical-spacing) / 2);
}
ol.Standard>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li>ol>li:before {
counter-increment: item9;
content: counter(item9, lower-roman)".";
text-align: right;
position: absolute;
left: calc(-1 * var(--prefix-size) - var(--prefix-gap));
margin-right: var(--prefix-gap);
width: var(--prefix-size);
overflow: hidden;
}
SAMPLE TOPIC CODE VIEW
<ol class="p">
<li class="p">
<p>This is my first outline level 1 step.</p>
<ol class="p">
<li class="p">
<p>This is my first outline level 2 step.</p>
<ol class="p">
<li class="p">
<p>This is my second outline level 2 step.</p>
</li>
<li class="p">
<p>This is my first outline level 3 step.</p>
</li>
</ol>
</li>
<li class="p">
<p>This is my second outline level 3 step.</p>
</li>
</ol>
</li>
<li class="p">
<p>This is my second outline level 1 step.</p>
<ol class="p">
<li class="p">
SAMPLE TOPIC WYSIWYG + GENERATED OUTPUT VIEW
1. This is my first outline level 1 step.
1. This is my first outline level 2 step.
2. This is my second outline level 2 step.
1. This is my first outline level 3 step.
2. This is my second outline level 3 step.
2. This is my second outline level 1 step.
