diff --git a/backend/src/plugins/ZeppelinPlugin.ts b/backend/src/plugins/ZeppelinPlugin.ts index f2cc6481..ce593a0b 100644 --- a/backend/src/plugins/ZeppelinPlugin.ts +++ b/backend/src/plugins/ZeppelinPlugin.ts @@ -53,8 +53,8 @@ export interface CommandInfo { export function trimPluginDescription(str) { const emptyLinesTrimmed = trimEmptyStartEndLines(str); const lines = emptyLinesTrimmed.split("\n"); - const lastLineIndentation = (lines[lines.length - 1].match(/^ +/g) || [""])[0].length; - return trimIndents(emptyLinesTrimmed, lastLineIndentation); + const firstLineIndentation = (lines[0].match(/^ +/g) || [""])[0].length; + return trimIndents(emptyLinesTrimmed, firstLineIndentation); } const inviteCache = new SimpleCache>(10 * MINUTES, 200);