Package: libxml-tidy-perl / 1.16-1

add-manpage Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Subject: add a man page to xmltidy
Author: Ryan Niebur <ryanryan52@gmail.com>
Last-Update: 2016-07-25
Forwarded: no
Reviewed-by: Nicholas Bamber <nicholas@periapt.co.uk>
--- a/bin/xmltidy
+++ b/bin/xmltidy
@@ -14,3 +14,27 @@
 use strict;use warnings;use XML::Tidy;
 my $flnm = shift() || die "USAGE: `$0 FileName.xml '<indent_string>'`\n";
 my $nxto = XML::Tidy->new($flnm);$nxto->tidy(shift());$nxto->write();
+
+=pod
+
+=head1 NAME
+
+xmltidy - tidy an XML document
+
+=cut
+
+=head1 SYNOPSIS
+
+xmltidy FileName.xml <indent_string>
+
+=cut
+
+=head1 DESCRIPTION
+
+The FileName is the file that will be tidied, and the optional
+indent_string is the string that should be inserted for each indent
+level, which defaults to two spaces.
+
+=cut
+
+