I hereby claim:
- I am clj on github.
- I am cljacobsen (https://keybase.io/cljacobsen) on keybase.
- I have a public key ASDQU1UADl1bLGDhxBj1klafXt_JdQjo6h1A-rGVqEEY8wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
### | |
# Adapted from: https://stackoverflow.com/a/20703594 | |
### | |
if [ -z "${1+set}" ]; then | |
echo "Pass path to the inkscape command as first argument" | |
exit 1 | |
fi |
from lxml import etree | |
import premailer | |
class MyPremailer(premailer.Premailer): | |
def transform(self, pretty_print=True, **kwargs): | |
assert self.method == 'html' | |
parser = etree.HTMLParser() | |
stripped = self.html.strip() |