Inline “preformatted text” formatting used when multi-line selection doesn't contain hard break

It doesn’t seem to happen when selecting manually as well.