Debian Codegraph @

debian/control

raw
1 Source: libhtml-truncate-perl
2 Maintainer: Debian Perl Group <[email protected]>
3 Uploaders: Lucas Kanashiro <[email protected]>
4 Section: perl
5 Testsuite: autopkgtest-pkg-perl
6 Priority: optional
7 Build-Depends: debhelper-compat (= 13), libmodule-install-perl
8 Build-Depends-Indep: libhtml-parser-perl,
9 libhtml-tagset-perl,
10 perl
11 Standards-Version: 3.9.6
12 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libhtml-truncate-perl
13 Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libhtml-truncate-perl.git
14 Homepage: https://metacpan.org/release/HTML-Truncate
15
16 Package: libhtml-truncate-perl
17 Architecture: all
18 Depends: ${misc:Depends},
19 ${perl:Depends},
20 libhtml-parser-perl,
21 libhtml-tagset-perl
22 Description: Perl module to truncate HTML by percentage or character count
23 When working with text it is common to want to truncate strings to make them
24 fit a desired context. E.g., you might have a menu that is only 100px wide and
25 prefer text doesn't wrap so you'd truncate it around 15-30 characters,
26 depending on preference and typeface size. This is trivial with plain text
27 using substr but with HTML it is somewhat difficult because whitespace has
28 fluid significance and open tags that are not properly closed destroy
29 well-formedness and can wreck an entire layout.
30 .
31 HTML::Truncate attempts to account for those two problems by padding truncation
32 for spacing and entities and closing any tags that remain open at the point of
33 truncation.