Typically for mdoc(7)
macros one places the punctuation after the term
Lorem ipsum dolor sit
.B amet ,
consectetur adipiscing
.B elit ,
sed do eiusmod tempor incididunt ut labore et dolore magna
.B aliqua .
(Though, not all macros may support this.) To avoid the spaces or otherwise random vanishing of the successive punctuation, a quick review of existing usages
find /usr/src -name "*.1" -exec fgrep ".B " {} + 2>/dev/null
on OpenBSD revealed \c
and of course one cannot put .
alone at the beginning of a line:
Lorem ipsum dolor sit
.B amet\c
, consectetur adipiscing
.B elit\c
, sed do eiusmod tempor incididunt ut labore et dolore magna
.B aliqua\c
\&.