[gtk-doc] migratetmpl: don't break para (e.g. in lists)
- From: Stefan Kost <stefkost src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk-doc] migratetmpl: don't break para (e.g. in lists)
- Date: Wed, 15 Jul 2009 13:04:12 +0000 (UTC)
commit 9ae8f8b6e15b8efca833e5c8776463bda413e965
Author: Stefan Kost <ensonic users sf net>
Date: Wed Jul 15 14:16:26 2009 +0300
migratetmpl: don't break para (e.g. in lists)
tools/migratetmpl.pl | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/tools/migratetmpl.pl b/tools/migratetmpl.pl
index 2e2c49a..6db3c83 100755
--- a/tools/migratetmpl.pl
+++ b/tools/migratetmpl.pl
@@ -544,9 +544,11 @@ sub ConvertMarkup {
$ostr="";
for $line (split (/\n/, $istr)) {
- if ($line =~ m/\s*<para>\s*$/) {
+ if ($line =~ m/^\s*<para>\s*$/) {
+ # new paragraph
next;
- } elsif ($line =~ m/\s*<\/para>\s*$/) {
+ } elsif ($line =~ m/^\s*<\/para>\s*$/) {
+ # end of paragraph
$ostr.="\n";
} else {
# convert character entities back.
@@ -563,7 +565,7 @@ sub ConvertMarkup {
#############################################################################
# Function : ConvertComments
-# Description : Convert signle line c comments to c++ comments
+# Description : Convert single line c comments to c++ comments
# Arguments : $istr - string to convert
#############################################################################
sub ConvertComments {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]