summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/cpan/podlators/t/data/snippets
diff options
context:
space:
mode:
authorafresh1 <afresh1@openbsd.org>2017-02-05 00:31:51 +0000
committerafresh1 <afresh1@openbsd.org>2017-02-05 00:31:51 +0000
commitb8851fcc53cbe24fd20b090f26dd149e353f6174 (patch)
tree4b7c1695865f00ab7a0da30b5632d514848ea3a2 /gnu/usr.bin/perl/cpan/podlators/t/data/snippets
parentAdd option PCIVERBOSE. (diff)
downloadwireguard-openbsd-b8851fcc53cbe24fd20b090f26dd149e353f6174.tar.xz
wireguard-openbsd-b8851fcc53cbe24fd20b090f26dd149e353f6174.zip
Fix merge issues, remove excess files - match perl-5.24.1 dist
Diffstat (limited to 'gnu/usr.bin/perl/cpan/podlators/t/data/snippets')
-rw-r--r--gnu/usr.bin/perl/cpan/podlators/t/data/snippets/README45
-rw-r--r--gnu/usr.bin/perl/cpan/podlators/t/data/snippets/man/cpp20
-rw-r--r--gnu/usr.bin/perl/cpan/podlators/t/data/snippets/man/utf8-nonbreaking17
-rw-r--r--gnu/usr.bin/perl/cpan/podlators/t/data/snippets/man/utf8-verbatim31
-rw-r--r--gnu/usr.bin/perl/cpan/podlators/t/data/snippets/text/cpp20
5 files changed, 133 insertions, 0 deletions
diff --git a/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/README b/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/README
new file mode 100644
index 00000000000..0e7252daa45
--- /dev/null
+++ b/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/README
@@ -0,0 +1,45 @@
+The files in this directory are used by the test suite to exercise various
+behavior of Pod::Man or Pod::Text. They use a pseudo-ini-file syntax with
+free-form sections, normally an input and an output section and possibly
+others.
+
+Sections start with the section type in []. The contents are normally
+just free-form. The exception is an [options] section, where the contents
+are key/value pairs, where the key is separated from the value with
+whitespace.
+
+Valid sections are:
+
+ [name]
+ The name of this test for status reporting
+
+ [options]
+ key value
+ key value
+
+ [input]
+ POD input source.
+
+ [output]
+ The results of running some formatter on the input.
+
+ [errors]
+ Errors reported to standard error when running some formatter on the
+ input.
+
+ [exception]
+ The text of an exception (with the file and line number information
+ stripped) thrown by running some formatter on the input.
+
+Files are organized into subdirectories named after the formatter, namely
+man (Pod::Man), text (Pod::Text), color (Pod::Text::Color), overstrike
+(Pod::Text::Overstrike), and termcap (Pod::Text::Termcap).
+
+-----
+
+Copyright 2015 Russ Allbery <rra@cpan.org>
+
+Copying and distribution of this file, with or without modification, are
+permitted in any medium without royalty provided the copyright notice and
+this notice are preserved. This file is offered as-is, without any
+warranty.
diff --git a/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/man/cpp b/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/man/cpp
new file mode 100644
index 00000000000..177aeeeb89d
--- /dev/null
+++ b/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/man/cpp
@@ -0,0 +1,20 @@
+[name]
+Special handling of C++
+
+[input]
+=head1 NAME
+
+gcc - GNU project C and C++ compiler
+
+=head1 C++ NOTES
+
+Other mentions of C++.
+
+=cut
+
+[output]
+.SH "NAME"
+gcc \- GNU project C and C++ compiler
+.SH "\*(C+ NOTES"
+.IX Header " NOTES"
+Other mentions of \*(C+.
diff --git a/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/man/utf8-nonbreaking b/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/man/utf8-nonbreaking
new file mode 100644
index 00000000000..8198a77ece0
--- /dev/null
+++ b/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/man/utf8-nonbreaking
@@ -0,0 +1,17 @@
+[name]
+UTF-8 non-breaking space
+
+[options]
+utf8 1
+
+[input]
+=encoding utf-8
+
+=head1 SE<lt>E<gt> output with UTF-8
+
+This is S<non-breaking output>.
+
+[output]
+.SH "S<> output with UTF\-8"
+.IX Header "S<> output with UTF-8"
+This is non-breaking output.
diff --git a/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/man/utf8-verbatim b/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/man/utf8-verbatim
new file mode 100644
index 00000000000..0eea4ccb53f
--- /dev/null
+++ b/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/man/utf8-verbatim
@@ -0,0 +1,31 @@
+[name]
+UTF-8 handling in verbatim text
+
+[options]
+utf8 1
+
+[input]
+=encoding utf-8
+
+=head1 BEYONCÉ
+
+Beyoncé! Beyoncé! Beyoncé!!
+
+ Beyoncé! Beyoncé!
+ Beyoncé! Beyoncé!
+ Beyoncé! Beyoncé!
+
+Older versions did not convert Beyoncé in verbatim.
+
+[output]
+.SH "BEYONCÉ"
+.IX Header "BEYONCÉ"
+Beyoncé! Beyoncé! Beyoncé!!
+.PP
+.Vb 3
+\& Beyoncé! Beyoncé!
+\& Beyoncé! Beyoncé!
+\& Beyoncé! Beyoncé!
+.Ve
+.PP
+Older versions did not convert Beyoncé in verbatim.
diff --git a/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/text/cpp b/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/text/cpp
new file mode 100644
index 00000000000..b78877798f0
--- /dev/null
+++ b/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/text/cpp
@@ -0,0 +1,20 @@
+[name]
+Special handling of C++
+
+[input]
+=head1 NAME
+
+gcc - GNU project C and C++ compiler
+
+=head1 C++ NOTES
+
+Other mentions of C++.
+
+=cut
+
+[output]
+NAME
+ gcc - GNU project C and C++ compiler
+
+C++ NOTES
+ Other mentions of C++.