[LyX/master] The new DocBook output has no prerequisite on the document, so enable it for each and every document.

Pavel Sanda sanda at lyx.org
Wed Jul 8 07:11:09 UTC 2020


commit b5969212119673d479bb2e0a99ccc0e359d35e0b
Author: Thibaut Cuvelier <cuvelier.thibaut at gmail.com>
Date:   Fri May 10 02:13:23 2019 +0200

    The new DocBook output has no prerequisite on the document, so enable it for each and every document.
---
 lib/configure.py     |    2 +-
 src/BufferParams.cpp |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib/configure.py b/lib/configure.py
index f48fbf3..cea9bdc 100644
--- a/lib/configure.py
+++ b/lib/configure.py
@@ -1242,7 +1242,6 @@ def checkConverterEntries():
     # checkProg('Image converter', ['convert $$i $$o'])
     #
     # Entries that do not need checkProg
-    # \converter docbook    docbook5   "cp $$i $$o"	"xml"
     addToRC(r'''
 \converter csv        lyx        "python -tt $$s/scripts/csv2lyx.py $$i $$o"	""
 \converter fen        asciichess "python -tt $$s/scripts/fen2ascii.py $$i $$o"	""
@@ -1262,6 +1261,7 @@ def checkConverterEntries():
 \converter klyx       lyx        "python -tt $$s/lyx2lyx/lyx2lyx -c euc_kr -o $$o $$i"	""
 \converter lyxpreview png        "python -tt $$s/scripts/lyxpreview2bitmap.py --png"	""
 \converter lyxpreview ppm        "python -tt $$s/scripts/lyxpreview2bitmap.py --ppm"	""
+\converter docbook    docbook5   "cp $$i $$o"	"xml"
 ''')
 
 
diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index 1b13074..bb59d0d 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -2698,6 +2698,7 @@ vector<string> BufferParams::backends() const
 	}
 
 	v.push_back("xhtml");
+	v.push_back("docbook5");
 	v.push_back("text");
 	v.push_back("lyx");
 	return v;


More information about the lyx-cvs mailing list