aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/partial_title.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-01 11:00:39 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-01 11:00:39 +0200
commitc3fb83f7aa0f2bc5699d3a050a40af64081f78c7 (patch)
treea2117a15d8ac0e9285ec14accd0a209f9ab6b32a /src/construct/partial_title.rs
parentbe62b2e29a61774100f676cfdd9b100cadf1905f (diff)
downloadmarkdown-rs-c3fb83f7aa0f2bc5699d3a050a40af64081f78c7.tar.gz
markdown-rs-c3fb83f7aa0f2bc5699d3a050a40af64081f78c7.tar.bz2
markdown-rs-c3fb83f7aa0f2bc5699d3a050a40af64081f78c7.zip
Refactor to clean and document `space_or_tab`
Diffstat (limited to 'src/construct/partial_title.rs')
-rw-r--r--src/construct/partial_title.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/construct/partial_title.rs b/src/construct/partial_title.rs
index 044a8db..3d0bfb6 100644
--- a/src/construct/partial_title.rs
+++ b/src/construct/partial_title.rs
@@ -30,9 +30,7 @@
//! [character_reference]: crate::construct::character_reference
//! [label_end]: crate::construct::label_end
-use super::partial_space_or_tab::{
- space_or_tab_one_line_ending_with_options, OneLineEndingOptions,
-};
+use super::partial_space_or_tab::{space_or_tab_eol_with_options, EolOptions};
use crate::subtokenize::link;
use crate::tokenizer::{Code, ContentType, State, StateFnResult, TokenType, Tokenizer};
@@ -183,7 +181,7 @@ fn at_break(tokenizer: &mut Tokenizer, code: Code, mut info: Info) -> StateFnRes
}
Code::None => (State::Nok, None),
Code::CarriageReturnLineFeed | Code::Char('\r' | '\n') => tokenizer.go(
- space_or_tab_one_line_ending_with_options(OneLineEndingOptions {
+ space_or_tab_eol_with_options(EolOptions {
content_type: Some(ContentType::String),
connect: info.connect,
}),