HTML::...:Indent(3pm)
π HTML::FormFu::OutputProcessor::Indent π
okay bestie, welcome to HTML::FormFu::OutputProcessor::Indent (that's the 3pm one, perl squad represent π«Ά) β the little output processor whose whole entire job is to make your HTML output look pretty. Nicely indented. Gorgeous. Instagram-ready. β¨
version 2.07 btw, just so you know what you're working with π
πΈ SYNOPSIS πΈ
---
output_processors:
- Indent
that's it. that's the whole vibe. drop it in your config and the HTML gets the glow-up. no cap. π
β¨ METHODS β¨
π indent
Arguments: $string
Default Value: "\t"
so this is the string it uses to indent your HTML. the default is a tab ("\t"), which is lowkey the classic move, but you can pass literally any string you want in there if tabs aren't your thing. spaces girlies, this one's for you. π¦
π©΅ preserve_tags
Arguments: \@tags
Default Value: ['pre', 'textarea']
an arrayref of tag names whose contents should not be processed. like, hands off, do not touch, this content stays exactly as it is. π
by default it's pre and textarea β which makes SO much sense because messing with the whitespace inside those would be an absolute crime against humanity (and also against whoever's reading that text). so the processor just... leaves them alone. respectful queen behavior. π
π SEE ALSO π
- it's a sub-class of, and inherits methods from
HTML::FormFu::OutputProcessorβ so all the family traits come along for the ride π§ HTML::FormFuβ the main character, the parent of the whole situation β
π AUTHOR π
Carl Franks cfranks@cpan.org
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
π AUTHOR π
Carl Franks <cpan@fireartist.com>
(yes bestie, the author section shows up twice β that's not me being messy, that's just how the page is fr fr π)
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2018 by Carl Franks.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, periodt π β¨
cute little sign-off for you: this beauty was documented under perl v5.28.1, dated 2019-01-12 β iconic, timeless, a classic. go forth and indent responsibly, bestie π¦πΈπ
π¦ where this page comes from
- debian bookworm: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms