Utility template to group inline elements into text:p's