File: 0002-Adapt-output-to-help2man-expectations.patch

package info (click to toggle)
php-league-html-to-markdown 5.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 468 kB
  • sloc: php: 1,641; makefile: 20; xml: 15; sh: 5
file content (52 lines) | stat: -rw-r--r-- 1,483 bytes parent folder | download | duplicates (4)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Fri, 15 Nov 2019 14:43:52 -1000
Subject: Adapt output to help2man expectations

---
 bin/html-to-markdown | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/bin/html-to-markdown b/bin/html-to-markdown
index 88cfa39..1a8c5bf 100755
--- a/bin/html-to-markdown
+++ b/bin/html-to-markdown
@@ -57,27 +57,29 @@ HTML To Markdown
 
 Usage: html-to-markdown [OPTIONS] [FILE]
 
-    -h, --help  Shows help and usage information
+If no file is given, input will be read from STDIN
 
-    If no file is given, input will be read from STDIN
+Options:
+
+-h, --help  Shows help and usage information
 
 Examples:
 
-    Converting a file named document.html:
+Converting a file named document.html:
 
-        html-to-markdown document.html
+    html-to-markdown document.html
 
-    Converting a file and saving its output:
+Converting a file and saving its output:
 
-        html-to-markdown document.html > output.md
+    html-to-markdown document.html > output.md
 
-    Converting from STDIN:
+Converting from STDIN:
 
-        echo -e '<h1>Hello World!</h1>' | html-to-markdown
+    echo -e '<h1>Hello World!</h1>' | html-to-markdown
 
-    Converting from STDIN and saving the output:
+Converting from STDIN and saving the output:
 
-        echo -e '<h1>Hello World!</h1>' | html-to-markdown > output.md
+    echo -e '<h1>Hello World!</h1>' | html-to-markdown > output.md
 
 HELP;
 }