[Po4a-commits] r2599 - /trunk/lib/Locale/Po4a/Text.pm

barbier at users.alioth.debian.org barbier at users.alioth.debian.org
Sun Sep 30 12:17:12 UTC 2012


Author: barbier
Date: Sun Sep 30 12:17:11 2012
New Revision: 2599

URL: http://svn.debian.org/wsvn/po4a/?sc=1&rev=2599
Log:
Text.pm: Also define AsciiDoc section templates

Modified:
    trunk/lib/Locale/Po4a/Text.pm

Modified: trunk/lib/Locale/Po4a/Text.pm
URL: http://svn.debian.org/wsvn/po4a/trunk/lib/Locale/Po4a/Text.pm?rev=2599&op=diff
==============================================================================
--- trunk/lib/Locale/Po4a/Text.pm (original)
+++ trunk/lib/Locale/Po4a/Text.pm Sun Sep 30 12:17:11 2012
@@ -368,11 +368,12 @@
     return ($paragraph,$wrapped_mode,$expect_header,$end_of_paragraph);
 }
 
+my $asciidoc_RE_SECTION_TEMPLATES = "sect1|sect2|sect3|sect4|preface|colophon|dedication|synopsis|index";
 my $asciidoc_RE_STYLE_ADMONITION = "TIP|NOTE|IMPORTANT|WARNING|CAUTION";
 my $asciidoc_RE_STYLE_PARAGRAPH = "normal|literal|verse|quote|listing|abstract|partintro|comment|example|sidebar|source|music|latex|graphviz";
 my $asciidoc_RE_STYLE_NUMBERING = "arabic|loweralpha|upperalpha|lowerroman|upperroman";
 my $asciidoc_RE_STYLE_LIST = "appendix|horizontal|qanda|glossary|bibliography";
-my $asciidoc_RE_STYLES = "$asciidoc_RE_STYLE_ADMONITION|$asciidoc_RE_STYLE_PARAGRAPH|$asciidoc_RE_STYLE_NUMBERING|$asciidoc_RE_STYLE_LIST|float";
+my $asciidoc_RE_STYLES = "$asciidoc_RE_SECTION_TEMPLATES|$asciidoc_RE_STYLE_ADMONITION|$asciidoc_RE_STYLE_PARAGRAPH|$asciidoc_RE_STYLE_NUMBERING|$asciidoc_RE_STYLE_LIST|float";
 
 sub parse_asciidoc {
     my ($self,$line,$ref,$paragraph,$wrapped_mode,$expect_header,$end_of_paragraph) = @_;




More information about the Po4a-commits mailing list