aboutsummaryrefslogtreecommitdiff
path: root/src/machine.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-30 18:54:39 +0100
committerMartin Fischer <martin@push-f.com>2021-12-05 02:52:36 +0100
commit042409a2c40bb997739326928eab7d0430cec50b (patch)
treef7566682a4a75d24dc33924fa7f985c68605558f /src/machine.rs
parentfff865a98aa288930d6e363f03ad57570e429e92 (diff)
spans: fix spans for quoted attribute values
Diffstat (limited to 'src/machine.rs')
-rw-r--r--src/machine.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/machine.rs b/src/machine.rs
index 80b37d6..4300f45 100644
--- a/src/machine.rs
+++ b/src/machine.rs
@@ -763,12 +763,12 @@ pub fn consume<R: Reader, E: Emitter<R>>(
State::BeforeAttributeValue => match slf.read_char()? {
Some(whitespace_pat!()) => Ok(ControlToken::Continue),
Some('"') => {
- slf.emitter.init_attribute_value(&slf.reader);
+ slf.emitter.init_attribute_value(&slf.reader, true);
slf.state = State::AttributeValueDoubleQuoted;
Ok(ControlToken::Continue)
}
Some('\'') => {
- slf.emitter.init_attribute_value(&slf.reader);
+ slf.emitter.init_attribute_value(&slf.reader, true);
slf.state = State::AttributeValueSingleQuoted;
Ok(ControlToken::Continue)
}
@@ -779,7 +779,7 @@ pub fn consume<R: Reader, E: Emitter<R>>(
Ok(ControlToken::Continue)
}
c => {
- slf.emitter.init_attribute_value(&slf.reader);
+ slf.emitter.init_attribute_value(&slf.reader, false);
slf.state = State::AttributeValueUnquoted;
slf.unread_char(c);
Ok(ControlToken::Continue)