File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -365,8 +365,6 @@ impl<'a> SummaryParser<'a> {
365
365
let mut first = true ;
366
366
367
367
loop {
368
- let mut html_node = false ;
369
-
370
368
match self . next_event ( ) {
371
369
Some ( ev @ Event :: Start ( Tag :: Paragraph ) ) => {
372
370
if !first {
@@ -407,12 +405,6 @@ impl<'a> SummaryParser<'a> {
407
405
items. push ( SummaryItem :: Separator ) ;
408
406
}
409
407
410
- // A HTML node, such as a comment line... ignore, but set the html_node flag.
411
- Some ( Event :: Html ( html) ) => {
412
- trace ! ( "Skipping a HTML node of {:?}" , html) ;
413
- html_node = true ;
414
- }
415
-
416
408
// something else... ignore
417
409
Some ( _) => { }
418
410
@@ -422,10 +414,8 @@ impl<'a> SummaryParser<'a> {
422
414
}
423
415
}
424
416
425
- // If the event was not a HTML node, we no longer accept any new paragraph opening tags.
426
- if !html_node {
427
- first = false ;
428
- }
417
+ // From now on, we cannot accept any new paragraph opening tags.
418
+ first = false ;
429
419
}
430
420
431
421
Ok ( items)
You can’t perform that action at this time.
0 commit comments