File: 2001_use_rst2html.patch

package info (click to toggle)
pinot 1.21-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,416 kB
  • sloc: cpp: 41,836; makefile: 609; xml: 421; sh: 336
file content (44 lines) | stat: -rw-r--r-- 1,289 bytes parent folder | 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
36
37
38
39
40
41
42
43
44
Description: Use external helper tool rst2html (not rst2txt)
 rst2html is in Debian, rst2txt is not.
 .
 This reverts upstream git commit 4b1231d.
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2022-03-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/README
+++ b/README
@@ -246,7 +246,7 @@
   The following document types are supported through external programs :
     * PDF (pdftotext required)
     * RTF (unrtf required)
-    * ReStructured Text (rst2txt required)
+    * ReStructured Text (rst2html required)
     * OpenDocument/StarOffice files (unzip required)
     * MS Word (antiword required)
     * PowerPoint (catppt required)
@@ -558,8 +558,8 @@
 unrtf
 http://www.gnu.org/software/unrtf/unrtf.html
 
-rst2txt
-https://github.com/stephenfin/rst2txt
+rst2html
+http://docutils.sourceforge.net
 
 djvutxt							
 http://djvu.sourceforge.net/
--- a/Tokenize/filters/external-filters.xml
+++ b/Tokenize/filters/external-filters.xml
@@ -221,9 +221,9 @@
 <filter>
   <mimetype>text/x-rst</mimetype>
   <charset>utf-8</charset>
-  <command>rst2txt</command>
+  <command>rst2html</command>
   <arguments>-r 5 %s</arguments>
-  <output>text/plain</output>
+  <output>text/html</output>
 </filter>
 <filter>
   <mimetype>application/msword</mimetype>