Skip to content

Commit

Permalink
Fixes an error failing to parse if there is a newline after the attri…
Browse files Browse the repository at this point in the history
…bute.
  • Loading branch information
piyoppi committed Nov 19, 2024
1 parent 95d6025 commit ab3dece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/element_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub fn parse<'a>(token: &'a tokenizer::Token) -> Option<Element<'a>> {
}
},
State::Name(start) => match current_char {
' ' => {
' ' | '\n' => {
pairs.push((&target[start..pos], None));
state = State::NameEnd;
}
Expand Down

0 comments on commit ab3dece

Please sign in to comment.