Horizontal rule in the ordered list? bug or feature?

Please post all questions on Help+Manual 8 here

Moderators: Alexander Halser, Tim Green

Post Reply
michal_novomesky
Posts: 51
Joined: Thu Jan 12, 2012 2:21 pm
Contact:

Horizontal rule in the ordered list? bug or feature?

Unread post by michal_novomesky »

Preconditions:
- Export Lists as Text (recommended) unchecked
- H&M version 8.4.4

Problem:
- Horizontal rule (hr) is inside the ordered list

Expected behavior:
- Horizontal rule should not be in the ordered list (see HTML output)

H&M source:

Code: Select all

<list id="0" type="ol" listtype="decimal" formatstring="&#37;&#48;&#58;&#115;&#46;" format-charset="DEFAULT_CHARSET" levelreset="true" legalstyle="false" startfrom="12" styleclass="Normal" style="font-family:Calibri; font-size:11pt; color:#3a3a3a;">
  <li styleclass="Normal"> Random text.</li>
</list>
<para styleclass="Normal"><line style="height:1px; color:#000000;" /></para>
HTML output:

Code: Select all

<ol style="list-style-type:decimal" start="12">
<li value="12" class="p_Normal"> Random text.<hr style="height:1px; color:#000000; border-width:0; background-color:#000000;" /></li>
</ol>
You do not have the required permissions to view the files attached to this post.
User avatar
Tim Green
Site Admin
Posts: 23157
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Horizontal rule in the ordered list? bug or feature?

Unread post by Tim Green »

Hi Michal,

This shouldn't be happening but it is being triggered because you are using standard HTML ol/ul lists, which will give you less consistent list formatting on different browsers. You won't have this problem if you turn on the Export Lists as Text option in your WebHelp > HTML Export Options settings in the project configuration. Alternatively, which is a better solution, don't use the horizontal line element, which has been deprecated in HTML for some time now anyway. Instead, just add a top or bottom border to the next paragraph, depending on how you want to position the line.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
michal_novomesky
Posts: 51
Joined: Thu Jan 12, 2012 2:21 pm
Contact:

Re: Horizontal rule in the ordered list? bug or feature?

Unread post by michal_novomesky »

Tim, thanks for your fast reply.

We prefer to have standard HTML lists, <ul> and <ol>, instead of having paragraphs with a beginning of a HTML bullet &#8226;.
Having Export lists as text enabled works visually correctly in LTR languages but is buggy in RTL languages.

Where did you learn that <hr/> element is deprecated? If so, do you plan to remove the Insert horizontal rule functionality in H&M?
User avatar
Tim Green
Site Admin
Posts: 23157
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Horizontal rule in the ordered list? bug or feature?

Unread post by Tim Green »

michal_novomesky wrote: Mon Aug 22, 2022 1:13 pm Where did you learn that <hr/> element is deprecated? If so, do you plan to remove the Insert horizontal rule functionality in H&M?
We're definitely not going to remove it. Perhaps deprecated is the wrong term, as I'm sure that no browser is going to remove support for it any time soon, either. It's just a very old and clunky element that is hardly ever used any more because a block element with a border is always a much better solution with way more configuration options.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Tim Green
Site Admin
Posts: 23157
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Horizontal rule in the ordered list? bug or feature?

Unread post by Tim Green »

michal_novomesky wrote: Mon Aug 22, 2022 1:13 pm Having Export lists as text enabled works visually correctly in LTR languages but is buggy in RTL languages.
PS: We should be clear that Help+Manual's support for LTR languages is very limited and that is not going to change any time soon. It's a conscious choice: If we provided more extensive LTR support that would mean abandoning development on a lot of other things for much longer than any customers focusing on regular RTL languages would ever be happy with. :?
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Tim Green
Site Admin
Posts: 23157
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Horizontal rule in the ordered list? bug or feature?

Unread post by Tim Green »

Hi Michael,

This has been corrected in the current official update. If you downloaded before today please re-download, as the fix has just been applied:

https://www.helpandmanual.com/downloads.html
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
michal_novomesky
Posts: 51
Joined: Thu Jan 12, 2012 2:21 pm
Contact:

Re: Horizontal rule in the ordered list? bug or feature?

Unread post by michal_novomesky »

Thanks Tim and developers for the fast fix!
Works perfectly.

Also, I understand that priority for RTL languages like Arabic and Hebrew has lower priority than other important features of the product.
Post Reply