def buildRowBorder(start, middle, end, spacer, dateWidth, editorWidths, editorIds):
    """
    Create a row border line.
    :param start: The character to use at the start
    :param middle: The character to use for each middle column
    :param end: The character to use at the end
    :param spacer: The character to use for each cell ceiling/floor
    :param dateWidth: The width of the date column
    :param editorWidths: The width of each editors column
    :param editorIds: The ids of each editor
    :return:
    """
    line = start + spacer * (dateWidth + 2)
    for editor in editorIds:
        line += middle + spacer * (editorWidths[editor] + 2)
    return line + end