aboutsummaryrefslogtreecommitdiffhomepage
path: root/nuldoc-src/renderers
diff options
context:
space:
mode:
Diffstat (limited to 'nuldoc-src/renderers')
-rw-r--r--nuldoc-src/renderers/html.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/nuldoc-src/renderers/html.ts b/nuldoc-src/renderers/html.ts
index 3c49174..94d134b 100644
--- a/nuldoc-src/renderers/html.ts
+++ b/nuldoc-src/renderers/html.ts
@@ -125,9 +125,7 @@ function textNodeToHtmlText(t: Text, ctx: Context): string {
if (ctx.isInPre) return s;
// TODO: 日本語で改行するときはスペースを入れない
- return s
- .trim()
- .replaceAll(/\n */g, " ");
+ return s.replaceAll(/\n */g, " ");
}
function encodeSpecialCharacters(s: string): string {