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

How to force a line wrap in the TOC

Engaged ,
May 22, 2017 May 22, 2017

Hi there,
I have a two-line section headline which I'd want to appear wrapped to two lines in the TOC. Any ideas anybody if and how this can be done? Thanks.

459
Translate
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

Engaged , May 23, 2017 May 23, 2017

Nevermind, I figured it out myself (at least for HTML5). Inserting simple HTML line break tag <br> did the trick.

Translate
Contributor ,
May 22, 2017 May 22, 2017

I'm not sure about line wrap... but in HTML courses, you can change the width of the TOC, this might remove the need for another line. Once published, open up the CPM.js file. Search for tocProperties. There is a width property that you can change to your required size.

Translate
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
Engaged ,
May 23, 2017 May 23, 2017

Thanks for the hint, but actually I already had to extend the TOC width anyway in the Captivate Scin editor to at least display the first of the two line in full.

Translate
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
Engaged ,
May 23, 2017 May 23, 2017
LATEST

Nevermind, I figured it out myself (at least for HTML5). Inserting simple HTML line break tag <br> did the trick.

Translate
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 ,
May 23, 2017 May 23, 2017

You don't need to edit that file, the width of the TOC can be changed in the Settings of the TOC:

TOCSettings.png

Translate
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
Help resources