Lines Matching refs:text

1 # Pod::Text -- Convert POD data to formatted ASCII text.
9 # This module converts POD to formatted text. It replaces the old Pod::Text
185 # Figure out what quotes we'll be using for C<> text.
229 my ($text, $line, $paragraph) = @_;
232 $text =~ s/\n+\z//;
233 $text = " $text" if ($text =~ /^\S/);
234 warn qq($file:$line: Unknown command paragraph: =$command$text\n);
252 # Called for a regular text block. Gets the paragraph, the line number, and a
272 # Pod::InteriorSequence object and is expected to return the resulting text.
281 # this code is nested inside an L<> code, return the literal raw text of
289 # Index entries are ignored in plain text.
308 # When we output the text, we'll map this back.
348 my ($self, $text, $line) = @_;
349 $self->heading ($text, $line, 0, '====');
354 my ($self, $text, $line) = @_;
355 $self->heading ($text, $line, $$self{indent} / 2, '== ');
360 my ($self, $text, $line) = @_;
361 $self->heading ($text, $line, $$self{indent} * 2 / 3 + 0.5, '= ');
366 my ($self, $text, $line) = @_;
367 $self->heading ($text, $line, $$self{indent} * 3 / 4 + 0.5, '- ');
382 my ($self, $text, $line, $paragraph) = @_;
408 if ($kind eq 'text') {
424 # for text, in which case we treat it as a verbatim text block.
429 return unless s/^text\b[ \t]*\n?//;
472 # If we didn't return, go ahead and quote the text.
476 # Handle links. Since this is plain text, we can't actually make any real
477 # links, so this is all to figure out what text we print out. Most of the
481 my ($text, $type) = (parselink ($link))[1,4];
483 $text = $self->interpolate ($text, $line);
484 $text = '<' . $text . '>' if $type eq 'url';
485 return $text || '';
494 # text, the line number, the indentation, and the surrounding marker for the
497 my ($self, $text, $line, $indent, $marker) = @_;
499 $text =~ s/\s+$//;
500 $text = $self->interpolate ($text, $line);
504 $self->output ("\n" . "$margin$marker $text $closemark" . "\n\n");
506 $text .= "\n" if $$self{loose};
508 $self->output ($margin . $text . "\n");
522 # enough room for us to output the item tag in the margin of the text or if we
543 # If the text is just whitespace, we have an empty item paragraph;
590 # Reformat a paragraph of text for the current margin. Takes the text to
591 # reformat and returns the formatted text.
609 # Output text to the output device.
612 # Output a block of code (something that isn't part of the POD text). Called
671 Pod::Text - Convert POD data to formatted ASCII text
715 The number of spaces to indent regular text, and the default indentation for
724 arbitrary text documents, setting this to true may result in more pleasing
730 for all text, including headings, not the amount by which regular text is
736 Sets the quote marks used to surround CE<lt>> text. If the value is a
743 marks are added around CE<lt>> text.
754 The column at which to wrap text on the right-hand side. Defaults to 76.