Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

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

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

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2022-07-01 17:47 GMT
Find Nodes?
    Voting Booth?
    My most frequent journeys are powered by:

    Results (100 votes). Check out past polls.