File: fix_pandoc_options.patch

package info (click to toggle)
python-pweave 0.30.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,084 kB
  • sloc: python: 30,283; makefile: 167
file content (14 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fixes pandoc options to fix warnings
Index: python-pweave/pweave/formatters/publish.py
===================================================================
--- python-pweave.orig/pweave/formatters/publish.py	2023-01-31 13:02:12.658424192 +0100
+++ python-pweave/pweave/formatters/publish.py	2023-01-31 13:08:08.253763869 +0100
@@ -252,7 +252,7 @@
         if 'number' in chunk and chunk['number'] == 1:
             chunk = self.parsetitle(chunk)
         try:
-            pandoc = Popen(["pandoc", "-R", "-t", "latex", "-f", "markdown"], stdin=PIPE, stdout=PIPE)
+            pandoc = Popen(["pandoc", "-t", "latex+raw_tex", "-f", "markdown"], stdin=PIPE, stdout=PIPE)
         except:
             sys.stderr.write("ERROR: Can't find pandoc")
             raise