summaryrefslogtreecommitdiff
path: root/textproc/p5-HTML-Truncate/pkg-descr
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2005-12-23 13:03:36 +0000
committerAnton Berezin <tobez@FreeBSD.org>2005-12-23 13:03:36 +0000
commit83e2e3f0ff83d1db751f080a26d130a388f75df3 (patch)
tree97b04fc24c514b7eb6db64cc96052a03dbe7c915 /textproc/p5-HTML-Truncate/pkg-descr
parentAdd SHA256 checksum (diff)
Add textproc/p5-HTML-Truncate 0.03, a Perl module that truncates HTML by
character count while preserving well-formedness.
Notes
Notes: svn path=/head/; revision=151916
Diffstat (limited to 'textproc/p5-HTML-Truncate/pkg-descr')
-rw-r--r--textproc/p5-HTML-Truncate/pkg-descr14
1 files changed, 14 insertions, 0 deletions
diff --git a/textproc/p5-HTML-Truncate/pkg-descr b/textproc/p5-HTML-Truncate/pkg-descr
new file mode 100644
index 000000000000..d388856a072c
--- /dev/null
+++ b/textproc/p5-HTML-Truncate/pkg-descr
@@ -0,0 +1,14 @@
+When working with text it is convenient and common to want to truncate
+strings to make them fit a desired context. E.g., you might have a menu
+that is only 100px wide and prefer text doesn't wrap so you'd truncate
+it around 15-30 characters, depending on preference and typeface size.
+This is trivial with plain text and substr but with HTML it is somewhat
+difficult because whitespace has fluid significance and open tags that
+are not properly closed destroy well-formedness and can wreck an entire
+layout.
+
+HTML::Truncate attempts to account for those two problems by padding
+truncation for spacing and entities and closing any tags that remain
+open at the point of truncation.
+
+WWW: http://search.cpan.org/dist/HTML-Truncate/