Don't preserve line breaks in inline code

Closes #19323.