


=encoding UTF-8

=head1 NAME

CSS::Tidy - reformat CSS

=head1 SYNOPSIS

    use CSS::Tidy 'tidy_css';
    my $output = tidy_css ($input);

=head1 VERSION

This documents version 0.00_01 of CSS-Tidy
corresponding to L<git commit 5ec9474b1f9b0841110e01c2c2066bfc8fec27d7|https://github.com/benkasminbullock/css-tidy/commit/5ec9474b1f9b0841110e01c2c2066bfc8fec27d7> released on Wed Jan 27 09:50:32 2021 +0900.

=head1 DESCRIPTION

This reformats CSS.

=head1 FUNCTIONS

=head2 tidy_css

    my $output = tidy_css ($input);

Given CSS in C<$input>, reformat it into a consistent format and
return the value.

=head1 TRANSFORMATIONS APPLIED

=over

=item Indentation

Indentation is changed to multiples of four spaces.

=item Trailing whitespace

Trailing whitespace (blanks after the end of the line) is removed.

=item Property/value pairs

The spacing between property/value pairs such as

    font-size:21em;

is altered to put a single space after the colon:

    font-size: 21em;

=item Declaration blocks

A blank line is inserted between declaration blocks.

=back

=head1 SCRIPT

The script L<csstidy> runs L</tidy_css> on STDIN and prints the result
to STDOUT. There is also F<css-tidy.el> in the distribution which
enables one to run L<csstidy> on the current buffer.



=head1 AUTHOR

Ben Bullock, <bkb@cpan.org>

=head1 COPYRIGHT & LICENCE

This package and associated files are copyright (C) 
2021
Ben Bullock.

You can use, copy, modify and redistribute this package and associated
files under the Perl Artistic Licence or the GNU General Public
Licence.



