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

RH8: how to change default list 'type'?

Engaged ,
Jan 11, 2011 Jan 11, 2011

Copy link to clipboard

Copied

In another thread, Leon and William helped me 'get' how to easily do nested numbered lists using the Numbered List button and the indent button.

In my .css, I have entries for OL { }, OL OL { }, OL OL OL { } and I've indicated the list-styles as decimal, lower-alpha, and lower-roman.

In a nutshell...

- enter three lines of text

- select the three lines and click NumberedList button

- select lines 2&3, click Indent

- select line3, click Indent

Result:

1. Line 1

    1. Line 2

        1. Line 3

In the html view, each of the OL tags appear as <ol type="1">. Is Robohelp supposed to be able to recognize (somehow) that I wanted the indents to be lower-alpha and lower-roman, or do I have to go in to the html view every time and change the list type on the indented lists?

Views

372

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
LEGEND ,
Jan 11, 2011 Jan 11, 2011

Copy link to clipboard

Copied

LATEST

Hi again,

It's quite annoying isn't it? You do need to remove it, but there are better ways than doing it by hand. You can use list styles, which neatly makes all your previous effort pointless, or you can write a script to remove the type for you. Simply create all your topics and before generating run the script that strips all the type tags.

As a 'workaround', you can also change the definitions in your style sheet: add the !important statement after the list type styling;

ol ol { list-style-type: lower-alpha !important; }

The style from your css will now override the inline styling. This is a very usefull feature, but the !important statement may also override the user defined browser settings. Therefore, I think it sensible to delete the type attribute anyway.

There's an example script on my site that removes inline styling for you and that includes stripping the type attribute. The script itself is rather blunt, as it deletes all the inline styling from your project, but you can simply strip away the stuff you don't need.

Greet,

Willam

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