aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/skip.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-12 19:04:31 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-12 19:04:31 +0200
commit86834a02b301bba48c2bd568beb156e604470167 (patch)
tree9aa81037fe6da336b6cfd5afe895bf61c699d907 /src/util/skip.rs
parent879fbf500d0aef45cf5811569a53510013440bcd (diff)
downloadmarkdown-rs-86834a02b301bba48c2bd568beb156e604470167.tar.gz
markdown-rs-86834a02b301bba48c2bd568beb156e604470167.tar.bz2
markdown-rs-86834a02b301bba48c2bd568beb156e604470167.zip
Fix some issues around empty lists
Diffstat (limited to '')
-rw-r--r--src/util/skip.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/skip.rs b/src/util/skip.rs
index 3307734..d7b3896 100644
--- a/src/util/skip.rs
+++ b/src/util/skip.rs
@@ -59,7 +59,10 @@ fn skip_opt_with_direction(
};
if events[index].token_type == *current && balance == 0 {
- println!("close:it! {:?} {:?}", events[index].token_type, balance);
+ println!(
+ "close:it! {:?} {:?} {:?}",
+ events[index].token_type, balance, index
+ );
index = if forward { index + 1 } else { index - 1 };
println!("index:break: {:?}", index);
break;