|Just another Perl shrine|
Truncation of individual "Nodes to Consider"by kcott (Bishop)
|on Oct 29, 2021 at 06:03 UTC||Need Help??|
Would it be possible to truncate individual "Nodes To Consider" items that exceed a certain size.
This request was prompted by the fact that, for about the last day or two, the first three entries take up about 20 screenfuls (on my 27'' monitor with my browser extended to its full height). I have encountered single items like this in the past, but never this many: it makes navigation very difficult.
I'm not fussed about what actual size is chosen, perhaps 2,000 characters. I wouldn't want the number of lines to be the criterion: the second item, at the moment, contains a single line with 4,263 characters.
I'd envisage some simple line, following the truncation, which says something like: "Truncated at 2,000 characters, follow the link above to see the full post.".
Normal posts which exceed a maximum number of characters — I'm not sure of the limit; 64K? — have something similar. Perhaps the code used for that could be reused for this.