mirror of https://github.com/openresty/openresty
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
278 B
C
21 lines
278 B
C
9 years ago
|
#!/usr/bin/env perl
|
||
|
|
||
|
use strict;
|
||
|
use warnings;
|
||
|
|
||
|
my $indented;
|
||
|
while (<>) {
|
||
|
if (/^ \S/) {
|
||
|
$indented = 1;
|
||
|
print;
|
||
|
next;
|
||
|
}
|
||
|
if ($indented) {
|
||
|
if (/^[^-\#=\s]/) {
|
||
|
print "\n";
|
||
|
}
|
||
|
undef $indented;
|
||
|
}
|
||
|
print;
|
||
|
}
|