tangled
alpha
login
or
join now
pds.ls
/
pdsls
398
fork
atom
atmosphere explorer
pds.ls
tool
typescript
atproto
398
fork
atom
overview
issues
pulls
pipelines
reserve space for closing quote in OG card
juli.ee
1 day ago
82308919
98171897
verified
This commit was signed with the committer's
known signature
.
juli.ee
SSH Key Fingerprint:
SHA256:mBrT4x0JdzLpbVR95g1hjI1aaErfC02kmLRkPXwsYCk=
+2
-2
1 changed file
expand all
collapse all
unified
split
src
worker.js
+2
-2
src/worker.js
···
121
121
lines.push({ depth, segments: [...keySegs, { text: String(value), color: C.number }] });
122
122
} else if (typeof value === "string") {
123
123
const display = value.replace(/\n/g, " ");
124
124
-
const truncated = truncateToWidth(display, maxStrWidth);
124
124
+
const truncated = truncateToWidth(display, maxStrWidth - 2);
125
125
lines.push({
126
126
depth,
127
127
segments: [
···
221
221
for (const line of lines) {
222
222
for (const seg of line.segments) {
223
223
if (seg.color === C.string) {
224
224
-
seg.text = truncateToWidth(seg.text, maxStrWidth);
224
224
+
seg.text = truncateToWidth(seg.text, maxStrWidth - 2);
225
225
}
226
226
}
227
227
}