From 7895cdf9f4e02b20302dd17dddcef32e6bc42c31 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 13 Oct 2022 15:33:15 +0200 Subject: Refactor to improve coverage of titles --- src/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 615188e..8dd2ae7 100644 --- a/src/state.rs +++ b/src/state.rs @@ -463,9 +463,9 @@ pub enum Name { TitleBegin, TitleAfterEol, TitleAtBreak, - TitleAtBlankLine, TitleEscape, TitleInside, + TitleNok, } #[allow(clippy::too_many_lines)] @@ -962,9 +962,9 @@ pub fn call(tokenizer: &mut Tokenizer, name: Name) -> State { Name::TitleBegin => construct::partial_title::begin, Name::TitleAfterEol => construct::partial_title::after_eol, Name::TitleAtBreak => construct::partial_title::at_break, - Name::TitleAtBlankLine => construct::partial_title::at_blank_line, Name::TitleEscape => construct::partial_title::escape, Name::TitleInside => construct::partial_title::inside, + Name::TitleNok => construct::partial_title::nok, }; func(tokenizer) -- cgit