[Po4a-commits] r2250 - in /trunk: ./ lib/Locale/Po4a/ t/data-30/

barbier-guest at users.alioth.debian.org barbier-guest at users.alioth.debian.org
Thu Sep 23 10:13:10 UTC 2010


Author: barbier-guest
Date: Thu Sep 23 10:12:56 2010
New Revision: 2250

URL: http://svn.debian.org/wsvn/po4a/?sc=1&rev=2250
Log:
Text.pm:  Remove trailing newline in titles from PO files

Modified:
    trunk/NEWS
    trunk/lib/Locale/Po4a/Text.pm
    trunk/t/data-30/Attributes.po
    trunk/t/data-30/BlockId.po
    trunk/t/data-30/BlockTitles.po
    trunk/t/data-30/Callouts.po
    trunk/t/data-30/DelimitedBlocks.po
    trunk/t/data-30/Footnotes.po
    trunk/t/data-30/Lists.po
    trunk/t/data-30/Paragraphs.po
    trunk/t/data-30/Tables.po
    trunk/t/data-30/Titles.po

Modified: trunk/NEWS
URL: http://svn.debian.org/wsvn/po4a/trunk/NEWS?rev=2250&op=diff
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Thu Sep 23 10:12:56 2010
@@ -2,10 +2,13 @@
 
 =======================================================================
 
-* Major changes in release 0.40.2 (2010-??-??)
+* Major changes in release 0.41 (2010-??-??)
 
 po4a-updatepo:
  * --previous flag was not passed to msgmerge
+
+Text:
+ * Remove trailing newline in titles from PO files
 
 =======================================================================
 

Modified: trunk/lib/Locale/Po4a/Text.pm
URL: http://svn.debian.org/wsvn/po4a/trunk/lib/Locale/Po4a/Text.pm?rev=2250&op=diff
==============================================================================
--- trunk/lib/Locale/Po4a/Text.pm (original)
+++ trunk/lib/Locale/Po4a/Text.pm Thu Sep 23 10:12:56 2010
@@ -273,14 +273,15 @@
             $wrapped_mode = 0;
             my $level = $line;
             $level =~ s/^(.).*$/$1/;
+            $paragraph =~ s/\n$//s;
             my $t = $self->translate($paragraph,
                                      $self->{ref},
                                      "Title $level",
                                      "wrap" => 0);
-            $self->pushline($t);
-            $paragraph="";
-            $wrapped_mode = 1;
-            $self->pushline(($level x (length($t)-1))."\n");
+            $self->pushline($t."\n");
+            $paragraph="";
+            $wrapped_mode = 1;
+            $self->pushline(($level x (length($t)))."\n");
         } elsif ($asciidoc and
                  ($line =~ m/^(={1,5})( +)(.*?)( +\1)?$/)) {
             my $titlelevel1 = $1;

Modified: trunk/t/data-30/Attributes.po
URL: http://svn.debian.org/wsvn/po4a/trunk/t/data-30/Attributes.po?rev=2250&op=diff
==============================================================================
--- trunk/t/data-30/Attributes.po (original)
+++ trunk/t/data-30/Attributes.po Thu Sep 23 10:12:56 2010
@@ -18,7 +18,7 @@
 #. type: Title =
 #: ../data-30/Attributes.asciidoc:2
 #, no-wrap
-msgid "Test Attributes\n"
+msgid "Test Attributes"
 msgstr ""
 
 #. type: Attribute :Author:

Modified: trunk/t/data-30/BlockId.po
URL: http://svn.debian.org/wsvn/po4a/trunk/t/data-30/BlockId.po?rev=2250&op=diff
==============================================================================
--- trunk/t/data-30/BlockId.po (original)
+++ trunk/t/data-30/BlockId.po Thu Sep 23 10:12:56 2010
@@ -18,7 +18,7 @@
 #. type: Title =
 #: ../data-30/BlockId.asciidoc:2
 #, no-wrap
-msgid "Test BlockId Element\n"
+msgid "Test BlockId Element"
 msgstr ""
 
 #. type: Plain text

Modified: trunk/t/data-30/BlockTitles.po
URL: http://svn.debian.org/wsvn/po4a/trunk/t/data-30/BlockTitles.po?rev=2250&op=diff
==============================================================================
--- trunk/t/data-30/BlockTitles.po (original)
+++ trunk/t/data-30/BlockTitles.po Thu Sep 23 10:12:56 2010
@@ -18,7 +18,7 @@
 #. type: Title =
 #: ../data-30/BlockTitles.asciidoc:2
 #, no-wrap
-msgid "Test BlockTitles\n"
+msgid "Test BlockTitles"
 msgstr ""
 
 #. type: Block title

Modified: trunk/t/data-30/Callouts.po
URL: http://svn.debian.org/wsvn/po4a/trunk/t/data-30/Callouts.po?rev=2250&op=diff
==============================================================================
--- trunk/t/data-30/Callouts.po (original)
+++ trunk/t/data-30/Callouts.po Thu Sep 23 10:12:56 2010
@@ -18,7 +18,7 @@
 #. type: Title =
 #: ../data-30/Callouts.asciidoc:2
 #, no-wrap
-msgid "Test Callouts\n"
+msgid "Test Callouts"
 msgstr ""
 
 #. type: Block title

Modified: trunk/t/data-30/DelimitedBlocks.po
URL: http://svn.debian.org/wsvn/po4a/trunk/t/data-30/DelimitedBlocks.po?rev=2250&op=diff
==============================================================================
--- trunk/t/data-30/DelimitedBlocks.po (original)
+++ trunk/t/data-30/DelimitedBlocks.po Thu Sep 23 10:12:56 2010
@@ -18,13 +18,13 @@
 #. type: Title =
 #: ../data-30/DelimitedBlocks.asciidoc:2
 #, no-wrap
-msgid "Test Delimited Blocks\n"
+msgid "Test Delimited Blocks"
 msgstr ""
 
 #. type: Title -
 #: ../data-30/DelimitedBlocks.asciidoc:5
 #, no-wrap
-msgid "Predefined Delimited Blocks\n"
+msgid "Predefined Delimited Blocks"
 msgstr ""
 
 #. type: Plain text

Modified: trunk/t/data-30/Footnotes.po
URL: http://svn.debian.org/wsvn/po4a/trunk/t/data-30/Footnotes.po?rev=2250&op=diff
==============================================================================
--- trunk/t/data-30/Footnotes.po (original)
+++ trunk/t/data-30/Footnotes.po Thu Sep 23 10:12:56 2010
@@ -18,7 +18,7 @@
 #. type: Title =
 #: ../data-30/Footnotes.asciidoc:2
 #, no-wrap
-msgid "Test Footnotes\n"
+msgid "Test Footnotes"
 msgstr ""
 
 #. type: Plain text

Modified: trunk/t/data-30/Lists.po
URL: http://svn.debian.org/wsvn/po4a/trunk/t/data-30/Lists.po?rev=2250&op=diff
==============================================================================
--- trunk/t/data-30/Lists.po (original)
+++ trunk/t/data-30/Lists.po Thu Sep 23 10:12:56 2010
@@ -18,13 +18,13 @@
 #. type: Title =
 #: ../data-30/Lists.asciidoc:2
 #, no-wrap
-msgid "Test Lists\n"
+msgid "Test Lists"
 msgstr ""
 
 #. type: Title -
 #: ../data-30/Lists.asciidoc:5
 #, no-wrap
-msgid "Bulleted and Numbered Lists\n"
+msgid "Bulleted and Numbered Lists"
 msgstr ""
 
 #. type: Plain text
@@ -97,7 +97,7 @@
 #. type: Title -
 #: ../data-30/Lists.asciidoc:38
 #, no-wrap
-msgid "Vertical Labeled Lists\n"
+msgid "Vertical Labeled Lists"
 msgstr ""
 
 #. type: Labeled list
@@ -154,7 +154,7 @@
 #. type: Title -
 #: ../data-30/Lists.asciidoc:59
 #, no-wrap
-msgid "Horizontal Labeled Lists\n"
+msgid "Horizontal Labeled Lists"
 msgstr ""
 
 #. type: Labeled list
@@ -193,7 +193,7 @@
 #. type: Title -
 #: ../data-30/Lists.asciidoc:76
 #, no-wrap
-msgid "Question and Answer Lists\n"
+msgid "Question and Answer Lists"
 msgstr ""
 
 #. type: Labeled list
@@ -221,7 +221,7 @@
 #. type: Title -
 #: ../data-30/Lists.asciidoc:83
 #, no-wrap
-msgid "Glossary Lists\n"
+msgid "Glossary Lists"
 msgstr ""
 
 #. type: Labeled list
@@ -244,7 +244,7 @@
 #. type: Title -
 #: ../data-30/Lists.asciidoc:91
 #, no-wrap
-msgid "Bibliography Lists\n"
+msgid "Bibliography Lists"
 msgstr ""
 
 #. type: Plain text
@@ -274,7 +274,7 @@
 #. type: Title -
 #: ../data-30/Lists.asciidoc:102
 #, no-wrap
-msgid "Bibliography\n"
+msgid "Bibliography"
 msgstr ""
 
 #. type: Plain text
@@ -287,7 +287,7 @@
 #. type: Title -
 #: ../data-30/Lists.asciidoc:110
 #, no-wrap
-msgid "List Item Continuation\n"
+msgid "List Item Continuation"
 msgstr ""
 
 #. type: Plain text
@@ -348,7 +348,7 @@
 #. type: Title -
 #: ../data-30/Lists.asciidoc:138
 #, no-wrap
-msgid "List Block\n"
+msgid "List Block"
 msgstr ""
 
 #. type: Block title

Modified: trunk/t/data-30/Paragraphs.po
URL: http://svn.debian.org/wsvn/po4a/trunk/t/data-30/Paragraphs.po?rev=2250&op=diff
==============================================================================
--- trunk/t/data-30/Paragraphs.po (original)
+++ trunk/t/data-30/Paragraphs.po Thu Sep 23 10:12:56 2010
@@ -18,13 +18,13 @@
 #. type: Title =
 #: ../data-30/Paragraphs.asciidoc:2
 #, no-wrap
-msgid "Test Paragraphs\n"
+msgid "Test Paragraphs"
 msgstr ""
 
 #. type: Title -
 #: ../data-30/Paragraphs.asciidoc:5
 #, no-wrap
-msgid "Default Paragraph\n"
+msgid "Default Paragraph"
 msgstr ""
 
 #. type: Plain text
@@ -41,7 +41,7 @@
 #. type: Title -
 #: ../data-30/Paragraphs.asciidoc:16
 #, no-wrap
-msgid "Literal Paragraph\n"
+msgid "Literal Paragraph"
 msgstr ""
 
 #. type: Plain text
@@ -79,7 +79,7 @@
 #. type: Title -
 #: ../data-30/Paragraphs.asciidoc:42
 #, no-wrap
-msgid "Admonition Paragraphs\n"
+msgid "Admonition Paragraphs"
 msgstr ""
 
 #. type: Plain text

Modified: trunk/t/data-30/Tables.po
URL: http://svn.debian.org/wsvn/po4a/trunk/t/data-30/Tables.po?rev=2250&op=diff
==============================================================================
--- trunk/t/data-30/Tables.po (original)
+++ trunk/t/data-30/Tables.po Thu Sep 23 10:12:56 2010
@@ -18,7 +18,7 @@
 #. type: Title =
 #: ../data-30/Tables.asciidoc:2
 #, no-wrap
-msgid "Test Tables\n"
+msgid "Test Tables"
 msgstr ""
 
 # FIXME

Modified: trunk/t/data-30/Titles.po
URL: http://svn.debian.org/wsvn/po4a/trunk/t/data-30/Titles.po?rev=2250&op=diff
==============================================================================
--- trunk/t/data-30/Titles.po (original)
+++ trunk/t/data-30/Titles.po Thu Sep 23 10:12:56 2010
@@ -18,31 +18,31 @@
 #. type: Title =
 #: ../data-30/Titles.asciidoc:2
 #, no-wrap
-msgid "Title0\n"
+msgid "Title0"
 msgstr ""
 
 #. type: Title -
 #: ../data-30/Titles.asciidoc:5
 #, no-wrap
-msgid "Title1\n"
+msgid "Title1"
 msgstr ""
 
 #. type: Title ~
 #: ../data-30/Titles.asciidoc:8
 #, no-wrap
-msgid "Title level 2\n"
+msgid "Title level 2"
 msgstr ""
 
 #. type: Title ^
 #: ../data-30/Titles.asciidoc:11
 #, no-wrap
-msgid "Title level 3\n"
+msgid "Title level 3"
 msgstr ""
 
 #. type: Title +
 #: ../data-30/Titles.asciidoc:14
 #, no-wrap
-msgid "Title level 4\n"
+msgid "Title level 4"
 msgstr ""
 
 #. type: Title =




More information about the Po4a-commits mailing list