diff options
author | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2014-06-27 16:09:49 +0000 |
---|---|---|
committer | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2014-06-27 16:09:49 +0000 |
commit | 3534065db1c8a466a9ea9261e83f998d4d31ccbd (patch) | |
tree | b90f37a8b00e86b914224a15f54a2c369f5ce829 /getchangelog.pl | |
parent | 35178bcf618aa100edaa9537bc0726a06ba08497 (diff) |
getchangelog: add paragraphs when escaping latex
makes change log easier to read.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@400 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
Diffstat (limited to 'getchangelog.pl')
-rwxr-xr-x | getchangelog.pl | 5 |
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; } |