learnedax ([personal profile] learnedax) wrote2005-04-04 01:16 pm

Auto cut-tagging achieved

Well, that was easy. I've been fiddling a bit with making my friends view block quizlets, which involves a bunch of string parsing that the LJ style language does not already include, and [livejournal.com profile] laurion commented that it would be handy to chop entries over a certain length. I realized that I could do that by adding two lines to the basic layout, so now my friends page auto-cuts after 1000 characters. (That number is actually rather smaller than I want for regular use, but works well for demonstration purposes.)

Take that, overlong uncut entries.

[identity profile] dglenn.livejournal.com 2005-04-04 08:49 pm (UTC)(link)
Well ... that so many users who answered the poll picked "more pretty styles", anyhow ...

Thanks for the tip and code fragment. Until today I hadn't had enough incentive to go read the S2 docs yet.

(And I agree that it's reasonable to point out the option of using cut tags when a fairly new user seems unaware of them -- I've done that myself. I'm not completely anti-cut-tag; they do have their uses.)