+ let mut line_type = LineType::Text;
+ if line.char_indices().count() > 2 {
+ let mut end = line.len();
+ if line.char_indices().count() > 3 {
+ end = line.char_indices().map(|(i, _)| i).nth(3).unwrap();
+ }
+ line_type = identify_line(&line[..end], is_preformatted);
+ }