1
0
mirror of https://github.com/openresty/openresty synced 2024-11-14 08:45:50 +01:00
openresty/util/fix-pod2markdown

21 lines
278 B
C
Raw Normal View History

#!/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;
}