Commit Graph

46 Commits

Author SHA1 Message Date
Michal Proszek 2a5b7e2aa3 APD-363 - [BE] do not replace tel: links with base_url (#1) (#183)
* APD-363 - [BE] do not replace tel: links with base_url

* Correct typo

* Correct test html

* Correct description grammar
2017-10-25 23:04:54 +02:00
Peter Bengtsson cfe687b05b keep classes by default, fixes #33 (#167)
* keep classes by default, fixes #33

* full test coverage
2016-06-07 09:59:45 -04:00
Chet Corcos 914a1453a6 fix inline important tags 2016-04-13 13:07:56 -07:00
Peter Bengtsson dcab22bd74 Merge pull request #144 from oasiswork/jd-capitalize-margin-float
Add an option to capitalize margin and float properties
2016-03-15 15:35:09 -04:00
Peter Bengtsson 4b05c1ea48 require requests as a dependency 2016-03-15 15:05:52 -04:00
machinewu 01f9967e85 When merge style, don't change the style items' order 2016-01-22 23:26:12 +08:00
Michael JasonSmith 8d7813a408 prevent 3 digit hex codes where applicable 2016-01-13 13:13:03 -05:00
Jocelyn Delalande 27ac936a22 Add an option to capitalize margin and float properties
The option is disabled by default, that weird idea comes from a weird
outlook.com behaviour to handle margin and float properties only if the
first letter is uppercase.

See https://www.emailonacid.com/blog/article/email-development/outlook.com-does-support-margins
2015-10-27 16:24:39 +01:00
David Barbarisi 9d984ba7e4 Adds a remove_unset_properties setting. Squashed commits. 2015-09-09 16:37:38 -04:00
Gustav Tiger 89e4ce2a27 Add support for adding align tags on images from css float 2015-09-05 12:11:49 +02:00
Ionel Cristian Mărieș b0a32e1b96 Add a disable_leftover_css option that disables injecting unapplied css
into <head>.
2015-06-11 00:00:18 +03:00
Peter Bengtsson e9dc872a6b handle cssutils warnings, fixes #103 2015-06-10 09:40:35 -07:00
Peter Bengtsson 4535dd6ce3 always urljoin - fixes #119 2015-05-11 08:57:22 -07:00
Peter Bengtsson b43561a2ea flake8 all the things 2015-02-19 11:24:26 -08:00
Nguyen Van Nhu b6217fe50b Adding a test for turning off the cache 2015-02-18 19:32:24 +01:00
Nguyen Van Nhu 605d034f65 Rewrite inline and merge styles due to performance issue of merge and
the way we inline style
2015-02-18 19:32:23 +01:00
Peter Bengtsson dc9c938b10 ignore some style sheets, fixes #97 2014-12-25 21:44:13 -05:00
Peter Bengtsson b4dcc9fd93 small typo fix 2014-12-24 21:41:44 -05:00
Peter Bengtsson 560d5e1230 only use ok_() and eq_() 2014-12-24 21:30:30 -05:00
Matt Molyneaux dd86ef9b43 Unit test for format preserving
Test that Premailer outputs the same format as it's given, e.g.
ElementTree input will give ElementTree output.
2014-12-11 17:36:33 +00:00
Eli Dickinson 896ed7ea6e Handle !important in CSS declarations (fixes #49)
Individual CSS declarations marked with `!important` should take
precedence over rules that would otherwise have higher priority
due to a more specific selector.
2014-12-02 09:30:15 -05:00
Jon Bretman 5d87311241 add css_text option to allow css strings to be provided 2014-10-17 01:16:28 +01:00
Peter Bengtsson a7db869afa Merge pull request #86 from mpj17/hg
Python 3
2014-10-08 11:09:07 -07:00
Michael JasonSmith cf4440d9f4 Merge pull request #1 from peterbe/py26-and-ordereddict
support for python 2.6
2014-10-08 10:39:37 -07:00
Peter Bengtsson 0e2b2a5ef2 support for python 2.6 2014-10-08 10:28:33 -07:00
Michael JasonSmith b0c9953034 Using the mock.path decorator rather than the context https://github.com/peterbe/premailer/pull/86/files#r18591370 2014-10-08 10:19:37 -07:00
Michael JasonSmith d5e7715193 Cleanup for https://github.com/peterbe/premailer/pull/86/files#r18591579 2014-10-08 10:03:52 -07:00
Michael JasonSmith 289b5b193a Cleanup for https://github.com/peterbe/premailer/pull/86/files#r18591445 2014-10-08 10:02:26 -07:00
Michael JasonSmith 656f70ea8a Cleanup for https://github.com/peterbe/premailer/pull/86/files#r18591254 2014-10-08 09:55:30 -07:00
Michael JasonSmith acad7ef557 Cleanup for https://github.com/peterbe/premailer/pull/86/files#r18591185 2014-10-08 09:54:07 -07:00
Michael JasonSmith 725c9cfedf Using a sorted() call and an OrderedDict to ensure the output is stable enough to test. 2014-09-30 19:13:01 -07:00
Michael Krens 33dfd826ec preserve external css when keep_style_tags=True, fixes: #84 2014-09-29 23:37:02 +02:00
Michael JasonSmith 9fc8deac79 Hunting out non-determinism 2014-09-29 11:21:12 -07:00
Michael JasonSmith 7032803648 Ignoring coverage, adding a slash 2014-09-29 10:20:31 -07:00
Michael JasonSmith 11393d92a1 Still working on the tests 2014-09-29 10:16:53 -07:00
Michael JasonSmith 230d0820b8 Turing the mock.patch.object contexts into method-decorators. 2014-09-29 10:00:50 -07:00
Michael JasonSmith afc78befa6 Re-enabled almost all of the tests. 2014-09-29 10:00:50 -07:00
Michael JasonSmith 31ede1b158 Switching to BytesIO for binary data, and testing the premailer.premailer.Premailer._load_external_url method 2014-09-29 10:00:50 -07:00
Michael JasonSmith da0f83f69f Moving the tests into their own directory.
--HG--
rename : premailer/test-apple-newsletter.html => premailer/tests/test-apple-newsletter.html
rename : premailer/test-external-links.css => premailer/tests/test-external-links.css
rename : premailer/test-external-styles.css => premailer/tests/test-external-styles.css
rename : premailer/test-issue78.html => premailer/tests/test-issue78.html
rename : premailer/test-unicode.html => premailer/tests/test-unicode.html
rename : premailer/test_premailer.py => premailer/tests/test_premailer.py
2014-09-29 10:00:50 -07:00
Michael JasonSmith 29414e218b Still pondering how to patch this 2014-09-29 09:57:59 -07:00
Michael JasonSmith d6822e02d4 Adding absolute import and Unicode literals from __future__ 2014-09-29 09:55:26 -07:00
Peter Bengtsson 046e0c6cb8 all tests in a sub-directory called tests 2014-09-28 14:11:22 -04:00
Michael JasonSmith 9c869160a5 Turing the mock.patch.object contexts into method-decorators. 2014-09-24 11:36:09 -07:00
Michael JasonSmith f6c3fb4ca5 Re-enabled almost all of the tests. 2014-09-24 09:31:16 -07:00
Michael JasonSmith b78793e3d1 Switching to BytesIO for binary data, and testing the premailer.premailer.Premailer._load_external_url method 2014-09-23 22:07:50 -07:00
Michael JasonSmith 30cdf146c1 Moving the tests into their own directory.
--HG--
rename : premailer/test-apple-newsletter.html => premailer/tests/test-apple-newsletter.html
rename : premailer/test-external-links.css => premailer/tests/test-external-links.css
rename : premailer/test-external-styles.css => premailer/tests/test-external-styles.css
rename : premailer/test-issue78.html => premailer/tests/test-issue78.html
rename : premailer/test-unicode.html => premailer/tests/test-unicode.html
rename : premailer/test_premailer.py => premailer/tests/test_premailer.py
2014-09-23 21:07:56 -07:00