Skip to content

Commit e04c601

Browse files
committed
Fix tokenizer formatting.
1 parent 1c2e2c9 commit e04c601

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

html5ever/src/tokenizer/mod.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -596,23 +596,23 @@ impl<Sink: TokenSink> Tokenizer<Sink> {
596596
macro_rules! shorthand (
597597
( $me:ident : emit $c:expr ) => ( $me.emit_char($c) );
598598
( $me:ident : create_tag $kind:ident $c:expr ) => ( $me.create_tag($kind, $c) );
599-
( $me:ident : push_tag $c:expr ) => ( $me.current_tag_name.borrow_mut().push_char($c) );
599+
( $me:ident : push_tag $c:expr ) => ( $me.current_tag_name.borrow_mut().push_char($c) );
600600
( $me:ident : discard_tag ) => ( $me.discard_tag() );
601601
( $me:ident : discard_char $input:expr ) => ( $me.discard_char($input) );
602-
( $me:ident : push_temp $c:expr ) => ( $me.temp_buf.borrow_mut().push_char($c) );
602+
( $me:ident : push_temp $c:expr ) => ( $me.temp_buf.borrow_mut().push_char($c) );
603603
( $me:ident : emit_temp ) => ( $me.emit_temp_buf() );
604604
( $me:ident : clear_temp ) => ( $me.clear_temp_buf() );
605605
( $me:ident : create_attr $c:expr ) => ( $me.create_attribute($c) );
606-
( $me:ident : push_name $c:expr ) => ( $me.current_attr_name.borrow_mut().push_char($c) );
607-
( $me:ident : push_value $c:expr ) => ( $me.current_attr_value.borrow_mut().push_char($c) );
608-
( $me:ident : append_value $c:expr ) => ( $me.current_attr_value.borrow_mut().push_tendril($c) );
609-
( $me:ident : push_comment $c:expr ) => ( $me.current_comment.borrow_mut().push_char($c) );
610-
( $me:ident : append_comment $c:expr ) => ( $me.current_comment.borrow_mut().push_slice($c) );
606+
( $me:ident : push_name $c:expr ) => ( $me.current_attr_name.borrow_mut().push_char($c) );
607+
( $me:ident : push_value $c:expr ) => ( $me.current_attr_value.borrow_mut().push_char($c) );
608+
( $me:ident : append_value $c:expr ) => ( $me.current_attr_value.borrow_mut().push_tendril($c));
609+
( $me:ident : push_comment $c:expr ) => ( $me.current_comment.borrow_mut().push_char($c) );
610+
( $me:ident : append_comment $c:expr ) => ( $me.current_comment.borrow_mut().push_slice($c) );
611611
( $me:ident : emit_comment ) => ( $me.emit_current_comment() );
612-
( $me:ident : clear_comment ) => ( $me.current_comment.borrow_mut().clear() );
613-
( $me:ident : create_doctype ) => ( *$me.current_doctype.borrow_mut() = Doctype::default() );
614-
( $me:ident : push_doctype_name $c:expr ) => ( option_push(&mut $me.current_doctype.borrow_mut().name, $c) );
615-
( $me:ident : push_doctype_id $k:ident $c:expr ) => ( option_push(&mut $me.doctype_id($k), $c) );
612+
( $me:ident : clear_comment ) => ( $me.current_comment.borrow_mut().clear() );
613+
( $me:ident : create_doctype ) => ( *$me.current_doctype.borrow_mut() = Doctype::default() );
614+
( $me:ident : push_doctype_name $c:expr ) => ( option_push(&mut $me.current_doctype.borrow_mut().name, $c) );
615+
( $me:ident : push_doctype_id $k:ident $c:expr ) => ( option_push(&mut $me.doctype_id($k), $c) );
616616
( $me:ident : clear_doctype_id $k:ident ) => ( $me.clear_doctype_id($k) );
617617
( $me:ident : force_quirks ) => ( $me.current_doctype.borrow_mut().force_quirks = true);
618618
( $me:ident : emit_doctype ) => ( $me.emit_current_doctype() );

xml5ever/src/tokenizer/mod.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -522,30 +522,30 @@ impl<Sink: TokenSink> XmlTokenizer<Sink> {
522522
macro_rules! shorthand (
523523
( $me:ident : emit $c:expr ) => ( $me.emit_char($c) );
524524
( $me:ident : create_tag $kind:ident $c:expr ) => ( $me.create_tag($kind, $c) );
525-
( $me:ident : push_tag $c:expr ) => ( $me.current_tag_name.borrow_mut().push_char($c) );
525+
( $me:ident : push_tag $c:expr ) => ( $me.current_tag_name.borrow_mut().push_char($c) );
526526
( $me:ident : discard_tag $input:expr ) => ( $me.discard_tag($input) );
527527
( $me:ident : discard_char ) => ( $me.discard_char() );
528-
( $me:ident : push_temp $c:expr ) => ( $me.temp_buf.borrow_mut().push_char($c) );
528+
( $me:ident : push_temp $c:expr ) => ( $me.temp_buf.borrow_mut().push_char($c) );
529529
( $me:ident : emit_temp ) => ( $me.emit_temp_buf() );
530530
( $me:ident : clear_temp ) => ( $me.clear_temp_buf() );
531531
( $me:ident : create_attr $c:expr ) => ( $me.create_attribute($c) );
532-
( $me:ident : push_name $c:expr ) => ( $me.current_attr_name.borrow_mut().push_char($c) );
533-
( $me:ident : push_value $c:expr ) => ( $me.current_attr_value.borrow_mut().push_char($c) );
534-
( $me:ident : append_value $c:expr ) => ( $me.current_attr_value.borrow_mut().push_tendril($c) );
535-
( $me:ident : push_comment $c:expr ) => ( $me.current_comment.borrow_mut().push_char($c) );
536-
( $me:ident : append_comment $c:expr ) => ( $me.current_comment.borrow_mut().push_slice($c) );
532+
( $me:ident : push_name $c:expr ) => ( $me.current_attr_name.borrow_mut().push_char($c) );
533+
( $me:ident : push_value $c:expr ) => ( $me.current_attr_value.borrow_mut().push_char($c) );
534+
( $me:ident : append_value $c:expr ) => ( $me.current_attr_value.borrow_mut().push_tendril($c));
535+
( $me:ident : push_comment $c:expr ) => ( $me.current_comment.borrow_mut().push_char($c) );
536+
( $me:ident : append_comment $c:expr ) => ( $me.current_comment.borrow_mut().push_slice($c) );
537537
( $me:ident : emit_comment ) => ( $me.emit_current_comment() );
538-
( $me:ident : clear_comment ) => ( $me.current_comment.borrow_mut().clear() );
539-
( $me:ident : create_doctype ) => ( *$me.current_doctype.borrow_mut() = Doctype::default() );
540-
( $me:ident : push_doctype_name $c:expr ) => ( option_push(&mut $me.current_doctype.borrow_mut().name, $c) );
541-
( $me:ident : push_doctype_id $k:ident $c:expr ) => ( option_push(&mut $me.doctype_id($k), $c) );
538+
( $me:ident : clear_comment ) => ( $me.current_comment.borrow_mut().clear() );
539+
( $me:ident : create_doctype ) => ( *$me.current_doctype.borrow_mut() = Doctype::default() );
540+
( $me:ident : push_doctype_name $c:expr ) => ( option_push(&mut $me.current_doctype.borrow_mut().name, $c) );
541+
( $me:ident : push_doctype_id $k:ident $c:expr ) => ( option_push(&mut $me.doctype_id($k), $c) );
542542
( $me:ident : clear_doctype_id $k:ident ) => ( $me.clear_doctype_id($k) );
543543
( $me:ident : emit_doctype ) => ( $me.emit_current_doctype() );
544544
( $me:ident : error ) => ( $me.bad_char_error() );
545545
( $me:ident : error_eof ) => ( $me.bad_eof_error() );
546546
( $me:ident : create_pi $c:expr ) => ( $me.create_pi($c) );
547-
( $me:ident : push_pi_target $c:expr ) => ( $me.current_pi_target.borrow_mut().push_char($c) );
548-
( $me:ident : push_pi_data $c:expr ) => ( $me.current_pi_data.borrow_mut().push_char($c) );
547+
( $me:ident : push_pi_target $c:expr ) => ( $me.current_pi_target.borrow_mut().push_char($c) );
548+
( $me:ident : push_pi_data $c:expr ) => ( $me.current_pi_data.borrow_mut().push_char($c) );
549549
( $me:ident : set_empty_tag ) => ( $me.set_empty_tag() );
550550
);
551551

0 commit comments

Comments
 (0)