mirror of
https://github.com/typst/typst
synced 2025-08-06 11:17:54 +08:00
Add exception for "e.g."
This commit is contained in:
parent
2da2ffd799
commit
ca87507b47
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user