March 29, 2012

The current version of Pynliner is case-sensitive based, which makes it hard to generate inline CSS styles for XML-based documents that have difference case settings for the CSS styles. An example of this issue occurs in the html.jelly file of Hudson/Jenkins' email-ext plugin where the tags are lower-case but the CSS style tags are in upper case. In order to generate an HTML document that includes these inline styles, one either has to convert everything or update Pynliner to be able to be case-insenstive.

A pull request submitted here attempts to generate these inline styles automatically from the original file. The script can probably be adapted to generate any Jelly-based document, though some replace/substitution has to be done at the end.

https://github.com/rogerhu/email-ext-plugin/tree/jelly_pynliner

Hopefully the changes are incorporated into Pynliner too:

https://github.com/rennat/pynliner/pull/1

 



blog comments powered by Disqus