aboutsummaryrefslogtreecommitdiffhomepage
path: root/nuldoc-src/html.ts
diff options
context:
space:
mode:
Diffstat (limited to 'nuldoc-src/html.ts')
-rw-r--r--nuldoc-src/html.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuldoc-src/html.ts b/nuldoc-src/html.ts
index 5e573ad..70b5748 100644
--- a/nuldoc-src/html.ts
+++ b/nuldoc-src/html.ts
@@ -122,8 +122,8 @@ function nodeToHtmlText(n: Node, ctx: Context): string {
}
function textNodeToHtmlText(t: Text, ctx: Context): string {
+ if (ctx.isInPre) return t.content;
const s = encodeSpecialCharacters(t.content);
- if (ctx.isInPre) return s;
// TODO: 日本語で改行するときはスペースを入れない
return s