summaryrefslogtreecommitdiff
path: root/getchangelog.pl
diff options
context:
space:
mode:
Diffstat (limited to 'getchangelog.pl')
-rwxr-xr-xgetchangelog.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/getchangelog.pl b/getchangelog.pl
index e72645e..5619ce4 100755
--- a/getchangelog.pl
+++ b/getchangelog.pl
@@ -29,6 +29,11 @@ sub escapelatex {
$s =~ s/([&#%{}\$])/\\$1/go;
$s =~ s/[~]/\\~{}/go;
$s =~ s/(https?:\S*)/\\url{$1}/go;
+#1st line always on a separate paragraph
+ $s =~ s/\n/\n\n/o;
+#Guess where new paragraph starts
+ $s =~ s/\\.\n/.\n\n/go;
+ $s =~ s/\n-/\n\n-/go;
return $s;
}