Append the separator to each docs items. If it is displayed in a single line, omit the last separator.