mirror of
https://github.com/fspc/dswim.git
synced 2025-02-22 08:33:24 -05:00
Much nicer, just clip and past several lines of changes with a line with a newline
with nothing on it between each change.
This commit is contained in:
parent
14ff394bb2
commit
8e38d18b63
18
swim_pkg
18
swim_pkg
@ -185,17 +185,31 @@ if (!$stop) {
|
|||||||
my $save_doc;
|
my $save_doc;
|
||||||
$save_doc = " * ";
|
$save_doc = " * ";
|
||||||
$count = 0;
|
$count = 0;
|
||||||
|
my $mc = 0;
|
||||||
while (<STDIN>) {
|
while (<STDIN>) {
|
||||||
my $doc_reply = $_;
|
my $doc_reply = $_;
|
||||||
if ($doc_reply) {
|
if ($doc_reply ne "\n") {
|
||||||
print " ";
|
print " ";
|
||||||
$doc_reply = " $doc_reply" if $count != 0;
|
$doc_reply = "$doc_reply" if $count != 0 && $mc == 1;
|
||||||
|
$doc_reply = " $doc_reply" if $count != 0 && $mc != 1;
|
||||||
|
$mc = 0;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
print " * ";
|
||||||
|
if ( $count != 0 && $doc_reply eq "\n" ) {
|
||||||
|
$mc = 0;
|
||||||
|
$doc_reply = "\n * ";
|
||||||
|
$mc++;
|
||||||
|
}
|
||||||
|
$doc_reply = "$doc_reply" if $count != 0 && $mc == 1;
|
||||||
|
$doc_reply = " $doc_reply" if $count != 0 && $mc != 1;
|
||||||
}
|
}
|
||||||
last if $doc_reply =~ /^\s*\.\s*$/;
|
last if $doc_reply =~ /^\s*\.\s*$/;
|
||||||
if ($doc_reply) {
|
if ($doc_reply) {
|
||||||
$save_doc = $save_doc . $doc_reply;
|
$save_doc = $save_doc . $doc_reply;
|
||||||
}
|
}
|
||||||
$count++;
|
$count++;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open(CHANGELOG,">$packaging_defaults/changelog")
|
open(CHANGELOG,">$packaging_defaults/changelog")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user