Adds OPML format to pandoc exporter

This commit is contained in:
Olivier Keshavjee 2017-10-12 08:36:10 +02:00
parent ab9c95cc6d
commit bae8c2f570
2 changed files with 15 additions and 2 deletions

View file

@ -10,7 +10,7 @@ from manuskript.exporter.basic import basicExporter, basicFormat
from manuskript.exporter.pandoc.HTML import HTML
from manuskript.exporter.pandoc.PDF import PDF
from manuskript.exporter.pandoc.outputFormats import ePub, OpenDocument, DocX
from manuskript.exporter.pandoc.plainText import reST, markdown, latex
from manuskript.exporter.pandoc.plainText import reST, markdown, latex, OPML
from manuskript.functions import mainWindow
@ -35,7 +35,7 @@ class pandocExporter(basicExporter):
DocX(self),
PDF(self),
reST(self),
OPML(self),
]
def version(self):

View file

@ -36,3 +36,16 @@ class latex(abstractPlainText):
icon = "text-x-tex"
exportFilter = "Tex files (*.tex);; Any files (*)"
class OPML(abstractPlainText):
name = "OPML"
description = qApp.translate("Export", """The purpose of this format is to provide a way to exchange information
between outliners and Internet services that can be browsed or controlled
through an outliner.""")
exportVarName = "lastPandocOPML"
toFormat = "opml"
icon = "text-x-opml+xml"
exportFilter = "OPML files (*.opml);; Any files (*)"