aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/heading_setext.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-22 14:46:51 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-22 14:46:51 +0200
commit6fdaffb3a8b4517a3b5c1e39dc1e16649c6eb0da (patch)
tree39426778d5a150612059070196d50daadcebfb0e /src/construct/heading_setext.rs
parent33b69eb9189fb2fd0f731530285baf3ac20c5eb0 (diff)
downloadmarkdown-rs-6fdaffb3a8b4517a3b5c1e39dc1e16649c6eb0da.tar.gz
markdown-rs-6fdaffb3a8b4517a3b5c1e39dc1e16649c6eb0da.tar.bz2
markdown-rs-6fdaffb3a8b4517a3b5c1e39dc1e16649c6eb0da.zip
Rename `Whitespace` token to `SpaceOrTab`
Diffstat (limited to '')
-rw-r--r--src/construct/heading_setext.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/construct/heading_setext.rs b/src/construct/heading_setext.rs
index 924f840..0cb8687 100644
--- a/src/construct/heading_setext.rs
+++ b/src/construct/heading_setext.rs
@@ -202,7 +202,7 @@ fn text_line_start(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
let index = tokenizer.events.len() - 2;
// Link the whitespace, if it exists.
- if tokenizer.events[index].token_type == TokenType::Whitespace {
+ if tokenizer.events[index].token_type == TokenType::SpaceOrTab {
link(&mut tokenizer.events, index);
}
@@ -263,7 +263,7 @@ fn underline_sequence_start(tokenizer: &mut Tokenizer, code: Code) -> StateFnRes
let mut prefix = 0;
if let Some(event) = tail {
- if event.token_type == TokenType::Whitespace {
+ if event.token_type == TokenType::SpaceOrTab {
let span = from_exit_event(&tokenizer.events, tokenizer.events.len() - 1);
prefix = span.end_index - span.start_index;
}