const isSimpleText = (previousLine, text) => {
    return !previousLine.endsWith('>') && !text.startsWith('<');
};
export const formatDocAsSingleLine = (text) => {
    let [description, ...rows] = text.split('\n');
    rows = rows.map(row => row.trim()).filter(row => row);
    for (const row of rows) {
        if (isSimpleText(description, row)) {
            description += ' ';
        }
        description += row;
    }
    return description;
};
