-
-
18 Oct 2021 00:05:21 UTC
- Distribution: Perinci-To-Doc
- Module version: 0.878
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (391 / 0 / 1)
- Kwalitee
Bus factor: 1- % Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (36.46KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Data::Dump::OneLine
- Data::Dump::SortKeys
- Data::Sah::Terse
- File::Temp
- File::Which
- Locale::TextDomain::UTF8
- Log::ger
- Markdown::To::POD
- Moo
- Moo::Role
- Perinci::Access
- Perinci::Object
- Perinci::Sub::ConvertArgs::Array
- Perinci::Sub::GetArgs::Argv
- Perinci::Sub::Normalize
- Perinci::Sub::Util
- Perinci::Sub::Util::Sort
- Sort::ByExample
- String::PodQuote
- Text::Wrap
- experimental
- strict
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- VERSION
- DESCRIPTION
- REQUIRES
- ATTRIBUTES
- METHODS
- ENVIRONMENT
- HOMEPAGE
- SOURCE
- BUGS
- SEE ALSO
- AUTHOR
- COPYRIGHT AND LICENSE
NAME
Perinci::To::Doc::Role::Section::AddTextLines - Provide add_doc_lines() to add text with optional text wrapping
VERSION
This document describes version 0.878 of Perinci::To::Doc::Role::Section::AddTextLines (from Perl distribution Perinci-To-Doc), released on 2021-05-31.
DESCRIPTION
This role provides
add_doc_lines()
which can add optionally wrapped text todoc_lines
.The default column width for wrapping is from
COLUMNS
environment variable, or 80.REQUIRES
These methods are provided by, e.g. Perinci::To::Doc::Role::Section.
$o->doc_lines()
$o->doc_indent_level()
$o->doc_lines_str()
ATTRIBUTES
doc_wrap => BOOL (default: 1)
Whether to do text wrapping.
METHODS
$o->add_doc_lines([\%opts, ]@lines)
Add lines of text, optionally wrapping each line if wrapping is enabled.
Available options:
wrap => BOOL
Whether to enable wrapping. Default is from the
doc_wrap
attribute.
ENVIRONMENT
COLUMNS => INT
Used to set column width.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Perinci-To-Doc.
SOURCE
Source repository is at https://github.com/perlancar/perl-Perinci-To-Doc.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-To-Doc
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
SEE ALSO
Perinci::To::Doc::Role::Section
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2021, 2020, 2019, 2018, 2017, 2016, 2015, 2014, 2013 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Perinci::To::Doc, copy and paste the appropriate command in to your terminal.
cpanm Perinci::To::Doc
perl -MCPAN -e shell install Perinci::To::Doc
For more information on module installation, please visit the detailed CPAN module installation guide.