HtmlToWmlConverter issue with nested list items

Home Forums Open-Xml-PowerTools HtmlToWmlConverter issue with nested list items

This topic contains 0 replies, has 1 voice, and was last updated by  gamartin 1 month, 3 weeks ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #4334

    gamartin
    Participant

    Eric:

    We have come across a situation where nested list items do not convert properly from html to wml. The scenario is rather specific. Take the following html:

    <p>
              <strong>13.03 Maternity Leave
    Without Pay</strong>
            </p>
            <ol class="lst-lwr-alph">
              <li>An employee who becomes pregnant shall, upon request, be granted maternity
        leave without pay for a period beginning before, on or after the termination
        date of pregnancy and ending not later than eighteen (18) weeks after the
        termination date of pregnancy.</li>
              <li>Notwithstanding paragraph (a):
                    <ol class="lst-lwr-rmn"><li>where the employee has not yet proceeded on
          maternity leave without pay and her newborn child is hospitalized,<br />
                            or</li><li>where the employee has proceeded on
          maternity leave without pay and then returns to work for all or part of the
          period during which her newborn child is hospitalized,</li></ol>
                    the
        period of maternity leave without pay defined in paragraph (a) may be extended
        beyond the date falling eighteen (18) weeks after the date of termination of
        pregnancy by a period equal to that portion of the period of the child's
        hospitalization during which the employee was not on maternity leave, to a
        maximum of eighteen (18) weeks.</li>
              <li>The extension described in paragraph (b) shall end not later than fifty-two (52)
        weeks after the termination date of pregnancy.</li>
              <li>The Employer may require an employee
        to submit a medical certificate certifying pregnancy.</li>
              <li>An employee who has not started maternity leave without pay may elect to:
                    <ol class="lst-lwr-rmn"><li>use earned vacation and compensatory leave
          credits up to and beyond the date that her pregnancy terminates;<br />
                            or</li><li>use her sick leave credits up to and
          beyond the date that her pregnancy terminates, subject to the sick leave with
          pay provisions set out in Article 12. For purposes of this subparagraph, the
          terms "illness" or "injury" used in Article 12, Sick Leave With Pay, shall
          include medical disability related to pregnancy.</li></ol></li>
              <li>An employee shall inform the Employer in writing of her plans to take leave
        with and without pay to cover her absence from work due to the pregnancy at
        least four (4) weeks in advance of the initial date of continuous leave of
        absence during which termination of pregnancy is expected to occur unless there
        is a valid reason why the notice cannot be given.</li>
              <li>Leave granted under this clause shall be counted for the calculation of "continuous
        employment" for calculating severance pay and "service" for calculating
        vacation leave. Time spent on such leave shall be counted for pay increment
        purposes.</li>
            </ol>

    The first sublist in item b should have 2 items and then continue the text (starting with “the period of maternity leave without pay…” until the sentence “The extension described in…”.
    Unfortunately when converted to word, the phrase “the period of maternity leave without pay…” becomes the third list item (item c) and thereby bumps the rest down as well.

    Hopefully this makes sense and you can give me some insight.

    Thanks,

    Garth

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.