HTML Converter does not put tfoot at bottom of table in WML

Home Forums Open-Xml-PowerTools HTML Converter does not put tfoot at bottom of table in WML

This topic contains 1 reply, has 2 voices, and was last updated by  Eric White 7 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3749

    gamartin
    Participant

    If my HTML Markup for a table follows the old HTML4 spec where the thead and tfoot come after the caption and before the tbody tag, the footer is rendered as the first row under the column headers.

    If the tfoot tag is after the tbody then the footer appears at the end of the table.

    Is there any way to work around with without changing the markup?

    #3763

    Eric White
    Keymaster

    Hi,

    Support for this variety of markup is not a feature of the HtmlToWmlConverter module. It could be possible to enhance that module to support this variety of markup, but this is not on the list of things in the near or medium future for me. You could certainly enhance the code to support this, but you would need to be familiar with writing Recursive Pure Functional Transforms (RPFT) in C#. See the following screen-cast series.

    Recursive Pure Functional Transforms Series

    Probably would be easier to directly change the markup.

    Are you familiar with the HtmlAgilityPack:

    https://htmlagilitypack.codeplex.com/

    It is a good C# API for doing this variety of stuff.

    Cheers, Eric

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.