diff --git a/docs/src/lib.rs b/docs/src/lib.rs index 4dd373433..155ffb827 100644 --- a/docs/src/lib.rs +++ b/docs/src/lib.rs @@ -782,7 +782,7 @@ fn oneliner(docs: &str) -> EcoString { '(' | '[' | '{' => depth += 1, ')' | ']' | '}' => depth -= 1, '.' if depth == 0 => period = true, - c if period && c.is_whitespace() => { + c if period && c.is_whitespace() && !docs[..i].ends_with("e.g.") => { end = i; break; }