Skip to content

Commit 607f569

Browse files
committed
Update logging
1 parent e225cf8 commit 607f569

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jgclark.Dashboard/src/react/components/ItemContent.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function makeParaContentToLookLikeNPDisplayInReact(thisItem: TSectionItem, trunc
244244

245245
// Display underline with .underlined style
246246
output = convertUnderlinedToHTML(output)
247-
logDebug('makeParaContent...', `- after convertUnderlinedToHTML: ${output}`)
247+
// logDebug('makeParaContent...', `- after convertUnderlinedToHTML: ${output}`)
248248

249249
// Add suitable colouring to 'arrow' >date< items
250250
// (Needs to go before match on >date dates)
@@ -269,14 +269,14 @@ function makeParaContentToLookLikeNPDisplayInReact(thisItem: TSectionItem, trunc
269269
for (const capture of captures) {
270270
output = output.replace(capture, `<span style="color: var(--tint-color);">${capture}</span>`)
271271
}
272-
logDebug('makeParaContent...', `- after colouring >dates: ${output}`) // ✅
272+
// logDebug('makeParaContent...', `- after colouring >dates: ${output}`)
273273
}
274274

275275
// Truncate the HTML string if wanted (avoiding breaking in middle of HTML tags)
276276
// Note: Best done before the note link is added
277277
if (truncateLength > 0 && origContent.length > truncateLength) {
278278
output = truncateHTML(output, truncateLength, true)
279-
logDebug('makeParaContent...', `- after truncate HTML (len ${truncateLength}, true) ${output}`) // ❌ adds weird ellipses after most <a>...</a> tags
279+
// logDebug('makeParaContent...', `- after truncate HTML (len ${truncateLength}, true) ${output}`)
280280
}
281281

282282
// Replace [[notelinks]] with HTML equivalent, and coloured

0 commit comments

Comments
 (0)