| 1 |
|
|---|
| 2 | require 5;
|
|---|
| 3 | package Pod::Perldoc::ToText;
|
|---|
| 4 | use strict;
|
|---|
| 5 | use warnings;
|
|---|
| 6 |
|
|---|
| 7 | use base qw(Pod::Perldoc::BaseTo);
|
|---|
| 8 |
|
|---|
| 9 | sub is_pageable { 1 }
|
|---|
| 10 | sub write_with_binmode { 0 }
|
|---|
| 11 | sub output_extension { 'txt' }
|
|---|
| 12 |
|
|---|
| 13 | use Pod::Text ();
|
|---|
| 14 |
|
|---|
| 15 | sub alt { shift->_perldoc_elem('alt' , @_) }
|
|---|
| 16 | sub indent { shift->_perldoc_elem('indent' , @_) }
|
|---|
| 17 | sub loose { shift->_perldoc_elem('loose' , @_) }
|
|---|
| 18 | sub quotes { shift->_perldoc_elem('quotes' , @_) }
|
|---|
| 19 | sub sentence { shift->_perldoc_elem('sentence', @_) }
|
|---|
| 20 | sub width { shift->_perldoc_elem('width' , @_) }
|
|---|
| 21 |
|
|---|
| 22 | sub new { return bless {}, ref($_[0]) || $_[0] }
|
|---|
| 23 |
|
|---|
| 24 | sub parse_from_file {
|
|---|
| 25 | my $self = shift;
|
|---|
| 26 |
|
|---|
| 27 | my @options =
|
|---|
| 28 | map {; $_, $self->{$_} }
|
|---|
| 29 | grep !m/^_/s,
|
|---|
| 30 | keys %$self
|
|---|
|
|---|