Sometimes I want to pluralize a Python class name, but the plural "s" should not be monospace, since it's not code. For example this answer:
The letters should line up.
Sometimes I want to pluralize a Python class name, but the plural "s" should not be monospace, since it's not code. For example this answer:
The letters should line up.
So the cause of this is that ...well, they are misaligned. By 2 pixels:
The fact that it's 2 pixels is unsurprising, given that the font-size
of inline code blocks is 13px
, while post body text is 15px
.
Adjusting the font-size
of code to 15px
does in fact make it line up better:
Session
don't line up with the bottom of the terminal s, then there's something wrong. Obviously, it's trivial to simply reword the sentence to avoid the problem altogether: "Read more about the Session
object" ;-)
Commented
Jul 27, 2022 at 15:05
font-size
of inline code blocks is13px
, while post body text is15px
. Adjusting the former to15px
does make it line up a bit better.Session
(I hope it's some sort of class) in which case you don't talk about multiple of them. The correct wording would be "To learn more aboutSession
: <link to documentation onSession
>. If you want to talk about multiples ofSession
, then it's probably "Session
objects"RuntimeError
s"? I know I can rephrase anything to add a space after the code, but I want to phrase things the way I phrase them.RuntimeError
multiple times" or "You will get multiple instances ofRuntimeError
with this code" Sure, you can also pluralise it but it's a bit awkward to work into written text anyway. It's not hard to reword slightly. Written text does not need to conform 1:1 with spoken word rules. Sometimes we avoid some spoken and/or informal rules. Similar to how for a Q&A on the site we should avoid writing things like "this code slaps" or "for loops are strong in this meta".RuntimeError
or that the actual exception class doesn't matter since you're just referring to errors that all happen at runtime.