jbostoen / itop-jb-mail-to-ticket-automation-v2

Originally a fork of Combodo's Mail to Ticket Automation, enriched with some new features. Also contains some bug fixes.
https://jeffreybostoen.be
6 stars 3 forks source link

HTML / seemingly numbered lists not processed correctly #32

Closed jbostoen closed 1 year ago

jbostoen commented 1 year ago

Just an example here which happened when processing an e-mail (mail to ticket, my own fork, but it's the same in the official Combodo version).

The real contents look like this in MS Outlook (text censored): image

The contents in iTop look like this: image

HTML source:

<ol style="margin-top:0in" start="1" type="1"><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">xxx.</li></ol>

<p class="MsoNormal"> </p>

<ol style="margin-top:0in" start="2" type="1"><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">xxxx.</li></ol>

After stripping: there is indeed a paragraph in between, and iTop will ignore the "start".

See https://github.com/Combodo/iTop/pull/368