Permalink
Browse files

Remove extra beautifulsoup parsing lowercasing attributes

  • Loading branch information...
thibaudcolas committed Feb 15, 2017
1 parent e529561 commit 24a048e0b36cc19c06c17110cc3cacf442d5fb06
Showing with 7 additions and 3 deletions.
  1. +4 −0 CHANGELOG.md
  2. +1 −1 draftjs_exporter/dom.py
  3. +1 −1 tests/test_exports.json
  4. +1 −1 tests/test_output.py
View
@@ -11,6 +11,10 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
- Add support for configurable decorators and entities.
- Add support for decorators and entities in function form.
### Changed
- Stop lowercasing HTML attributes. `*ngFor` will now be exported as `*ngFor`.
## [[v0.6.2]](https://github.com/springload/draftjs_exporter/releases/tag/v0.6.2) - 2017-01-18
### Added
View
@@ -133,7 +133,7 @@ def render(elt):
better way to do this.
Dirty, but quite easy to understand.
"""
return re.sub(r'</?(fragment|textnode|body|html|head)>', '', unicode(Soup(unicode(elt)))).strip()
return re.sub(r'</?(fragment|textnode|body|html|head)>', '', unicode(elt)).strip()
@staticmethod
def pretty_print(markup):
View
@@ -141,7 +141,7 @@
{
"label": "Entity with data-*",
"output": "<p><a data-=\"no\" data-false=\"bad\" data-id=\"42\" data-mutability=\"mutable\" extra=\"foo\" href=\"/\" title=\"hi\"><em>a</em></a></p>",
"output": "<p><a data-=\"no\" data-False=\"bad\" data-id=\"42\" data-mutability=\"mutable\" extra=\"foo\" href=\"/\" title=\"hi\"><em>a</em></a></p>",
"content_state": {
"entityMap": {
"0": {
View
@@ -361,7 +361,7 @@ def test_render_with_unknown_attribute(self):
'entityRanges': []
},
],
}), '<ul *ngfor="test"><li>item1</li></ul>')
}), '<ul *ngFor="test"><li>item1</li></ul>')
def test_render_with_element_options(self):
self.assertEqual(HTML({

0 comments on commit 24a048e

Please sign in to comment.