From 3534065db1c8a466a9ea9261e83f998d4d31ccbd Mon Sep 17 00:00:00 2001 From: mstsirkin Date: Fri, 27 Jun 2014 16:09:49 +0000 Subject: getchangelog: add paragraphs when escaping latex makes change log easier to read. Signed-off-by: Michael S. Tsirkin git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@400 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652 --- getchangelog.pl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'getchangelog.pl') 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; } -- cgit v1.2.3