UnFilled.pm 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # UnFilled.pm: handle unfilled line of text.
  2. #
  3. # Copyright 2010, 2011, 2017 Free Software Foundation, Inc.
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 3 of the License,
  8. # or (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. package Texinfo::Convert::UnFilled;
  18. use 5.006;
  19. use strict;
  20. # initialize a paragraph object.
  21. sub new($;$)
  22. {
  23. my $class = shift;
  24. my $conf = shift;
  25. if (!$conf) {
  26. $conf = {};
  27. }
  28. $conf->{'max'} = 10000000;
  29. $conf->{'ignore_columns'} = 1;
  30. $conf->{'keep_end_lines'} = 1;
  31. $conf->{'frenchspacing'} = 1;
  32. $conf->{'unfilled'} = 1;
  33. $conf->{'no_final_newline'} = 1;
  34. my $paragraph = Texinfo::Convert::Paragraph->new($conf);
  35. return $paragraph;
  36. }
  37. 1;