diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-16 04:42:44 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-16 04:42:44 +0900 |
| commit | bf077da72f4ffbee423dc681363a3c910e7b4721 (patch) | |
| tree | 3441b43d9bd048886cc958032ad9eedd196a5624 /src | |
| parent | Merge pull request #2246 from mei23/mei-0816-player (diff) | |
| download | sharkey-bf077da72f4ffbee423dc681363a3c910e7b4721.tar.gz sharkey-bf077da72f4ffbee423dc681363a3c910e7b4721.tar.bz2 sharkey-bf077da72f4ffbee423dc681363a3c910e7b4721.zip | |
Trim code
Diffstat (limited to 'src')
| -rw-r--r-- | src/mfm/parse/elements/code.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mfm/parse/elements/code.ts b/src/mfm/parse/elements/code.ts index 04ce692ce1..3c97fc1d99 100644 --- a/src/mfm/parse/elements/code.ts +++ b/src/mfm/parse/elements/code.ts @@ -19,6 +19,6 @@ export default function(text: string) { type: 'code', content: code, code: match[1], - html: genHtml(match[1]) + html: genHtml(match[1].trim()) } as TextElementCode; } |