Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Restored support of multiline attributes.
Browse files Browse the repository at this point in the history
Support was broken by recovery from unclosed attributes.
  • Loading branch information
Bystroushaak committed Jun 26, 2015
1 parent e11e755 commit 969fbe4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

2.1.2
-----
- Restored support of multiline attributes.

2.1.1
-----
- Fixed #16 - recovery after tags which don't ends with ``>`` (``</code`` for example).
Expand Down
2 changes: 1 addition & 1 deletion src/dhtmlparser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _raw_split(itxt):

# unescaped end of line - this is good for invalid HTML like
# <a href=something">..., because it allows recovery
if c == "\n" and not escaped:
if c == "\n" and not escaped and buff[0] == ">":
next_state = StateEnum.content
inside_tag = False

Expand Down

0 comments on commit 969fbe4

Please sign in to comment.