From ca87507b47930055cc04c6155eb7be8d8743b558 Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Wed, 16 Jul 2025 03:03:17 +0100 Subject: [PATCH] Add exception for "e.g." --- docs/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }