Note that pingouin's regex in the new conversion routine will miss the last property/value pair in the class (when it doesn't end with a ";").
Code:
body {font-size:1em;margin-bottom:0cm;margin-left:0.5cm;margin-right:0.5cm;margin-top:0cm}
becomes:
Code:
body {font-size:1em;margin-bottom:0.00em;margin-left:1.19em;margin-right:1.19em;margin-top:0cm}
Note the margin-top property at the end. It obviously won't matter when the value is zero, but it will when it's not.
If you get a basic conversion algorithm/regex that will cover all contingencies, integrating it into the cm2em script should be a snap.