View Single Post
Old 06-09-2014, 08:25 AM   #24
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,308
Karma: 211545324
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
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.
DiapDealer is online now   Reply With Quote