Trim extra whitespace from description

This commit is contained in:
Rene Saarsoo 2020-09-18 15:18:27 +03:00
parent 04467b944f
commit 6563f4fd5a
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ const extractText = (tokens: Token[]): [string, Token[]] => {
} }
tokens.shift(); tokens.shift();
} }
return [text || "", tokens]; return [text ? text.trim() : "", tokens];
}; };
const parseHeader = (tokens: Token[]): [Header, Token[]] => { const parseHeader = (tokens: Token[]): [Header, Token[]] => {