G'day All,

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.

— Ken


In reply to Truncation of individual "Nodes to Consider" by kcott

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.