#=============================================================================== # # DESCRIPTION: terminal output # # AUTHOR: Aliaksandr P. Zahatski, #=============================================================================== package Perl6::Pod::FormattingCode::T; =pod =head1 NAME Perl6::Pod::FormattingCode::T - Terminal output =head1 SYNOPSIS =para Got C output : T =head1 DESCRIPTION The CE> formatting code specifies that the contained text is B; that is: something that a program might print out. Such content would typically be rendered in a T or with C< EsampE...E/sampE > tags. The contents of a CE> code are always space-preserved (as if they had an implicit C...E> around them). The CE> code is the inline equivalent of the C<=output> block. =cut use warnings; use strict; use Perl6::Pod::FormattingCode; use base 'Perl6::Pod::FormattingCode'; use Perl6::Pod::Utl; our $VERSION = '0.01'; =head2 to_xhtml T Render xhtml: test =cut sub to_xhtml { my ( $self, $to ) = @_; $to->w->raw(''); $to->visit( Perl6::Pod::Utl::parse_para($self->{content}->[0]) ); $to->w->raw(''); } =head2 to_docbook T Render to FreeBSD L =cut sub to_docbook { my ( $self, $to ) = @_; $to->w->raw(''); $to->visit( Perl6::Pod::Utl::parse_para($self->{content}->[0]) ); $to->w->raw(''); } 1; __END__ =head1 SEE ALSO L, Perldoc Pod to HTML converter: L, Perl6::Pod::Lib =head1 AUTHOR Zahatski Aliaksandr, =head1 COPYRIGHT AND LICENSE Copyright (C) 2009-2015 by Zahatski Aliaksandr This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. =cut