Skip to main content
Community Expert
March 20, 2019
Answered

HTML5: table titles have no font information when there are several paragraphs

  • March 20, 2019
  • 1 reply
  • 424 views

Hi,

I had tested the export to HTML5 only briefly yet. When I use the default export settings (and some tweaks), the export looks good in my browser and on my smartphone.

One thing does not work. When there are several paragraphs in a table title, all paragraphs are concatenated and do not have any font information. Which means Times or something like this.

With a single paragraph everything is fine.

Is there anything which I can do about this? What can I do that the export maintains the separate paragraphs?

Possibly I will have more questions in the next days.

Best regards

Winfried

    This topic has been closed for replies.
    Correct answer Winfried Reng

    Hi,

    Markus Wiedenmaier from the German frameuser.de mailing list said

    that several paragraphs in a table title are not allowed in HTML.

    That's why FrameMaker concatenates all paragraphs in the table title.

    He suggested to apply a character format with all set to As Is to all paragraphs

    in the table title besides the last one. With the export to HTML a section in

    the CSS is added:

    span.FM_dummy {

    }

    Change this to:

    span.FM_dummy {

    white-space: pre-line;

    }

    span.FM_dummy:after {

    content:" \A ";

    }

    This adds a line break after each paragraph.

    In the HTML file the paragraph without font info is <caption class="caption"> which is not defined in the CSS.

    In the CSS add this to the regular table title definition so that this paragraph is formatted as the working table title paragraphs (those from tables with only a single paragraph):

    Old:

    caption.FM_figuretitle {...}

    New:

    caption.FM_figuretitle, caption.caption {...}

    Best regards

    Winfried

    1 reply

    Winfried RengCommunity ExpertAuthorCorrect answer
    Community Expert
    March 22, 2019

    Hi,

    Markus Wiedenmaier from the German frameuser.de mailing list said

    that several paragraphs in a table title are not allowed in HTML.

    That's why FrameMaker concatenates all paragraphs in the table title.

    He suggested to apply a character format with all set to As Is to all paragraphs

    in the table title besides the last one. With the export to HTML a section in

    the CSS is added:

    span.FM_dummy {

    }

    Change this to:

    span.FM_dummy {

    white-space: pre-line;

    }

    span.FM_dummy:after {

    content:" \A ";

    }

    This adds a line break after each paragraph.

    In the HTML file the paragraph without font info is <caption class="caption"> which is not defined in the CSS.

    In the CSS add this to the regular table title definition so that this paragraph is formatted as the working table title paragraphs (those from tables with only a single paragraph):

    Old:

    caption.FM_figuretitle {...}

    New:

    caption.FM_figuretitle, caption.caption {...}

    Best regards

    Winfried