diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-30 18:54:39 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-12-05 02:52:36 +0100 |
commit | 042409a2c40bb997739326928eab7d0430cec50b (patch) | |
tree | f7566682a4a75d24dc33924fa7f985c68605558f /src/emitter.rs | |
parent | fff865a98aa288930d6e363f03ad57570e429e92 (diff) |
spans: fix spans for quoted attribute values
Diffstat (limited to 'src/emitter.rs')
-rw-r--r-- | src/emitter.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emitter.rs b/src/emitter.rs index 1ab01f0..48ac391 100644 --- a/src/emitter.rs +++ b/src/emitter.rs @@ -132,9 +132,11 @@ pub trait Emitter<R> { fn init_attribute_name(&mut self, reader: &R); /// Called before the first push_attribute_value call. + /// If the value is wrappend in double or single quotes `quoted` is set to true, otherwise false. /// /// If there is no current attribute, this method may panic. - fn init_attribute_value(&mut self, #[allow(unused_variables)] reader: &R) {} + #[allow(unused_variables)] + fn init_attribute_value(&mut self, reader: &R, quoted: bool) {} /// Append a string to the current attribute's name. /// |