Commit bf1852e4 authored by Georges Khaznadar's avatar Georges Khaznadar

removed a useless command

parent d8e35f30
#! /usr/bin/python3
Converts an RST file to Dokuwiki format.
This utility was taylored to feed the collaborative place
./ somefile.rst
cat somefile.rst | ./
This feeds valid dokuwiki code in the standard output.
import subprocess, sys
p = subprocess.Popen(
"pandoc -f rst -t dokuwiki",
stdin=subprocess.PIPE, stdout=subprocess.PIPE
> Editar y traducir esta página
with (open(sys.argv[1]) if len(sys.argv) > 1 else sys.stdin) as data:
out, err = p.communicate()
sys.stdout.write(comment + out.decode("utf-8"))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment