Skip to content

Commit ccba0ff

Browse files
committed
use double lf for split
Signed-off-by: 迷渡 <justjavac@gmail.com>
1 parent 0cfa0c9 commit ccba0ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

typedoc-plugin-deno.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ export class DenoPlugin extends ConverterComponent {
9494
if (i18nTag === undefined) return;
9595

9696
const i18n = trim(i18nTag.text, '\n');
97-
const firstLF = i18n.indexOf('\n');
97+
const firstLF = i18n.indexOf('\n\n');
9898

9999
if (firstLF === -1) {
100100
comment.shortText_i18n = i18n;
101101
comment.text_i18n = '';
102102
} else {
103103
comment.shortText_i18n = i18n.substr(0, firstLF);
104-
comment.text_i18n = i18n.substr(firstLF + 1);
104+
comment.text_i18n = i18n.substr(firstLF + 2);
105105
}
106106

107107
removeTags(comment, '_i18n');

0 commit comments

Comments
 (0)