mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
revert recent change to development/FORMAT (don't change history)
drop LinuxDoc support (final part) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14823 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5a0176a6eb
commit
d056d51087
@ -315,7 +315,7 @@ Paragraph text.
|
||||
extra LaTeX "draft" 'extra' data passed to the primary
|
||||
command for this output format.
|
||||
(Possible formats LaTeX, PDFLaTeX,
|
||||
DocBook, Ascii.)
|
||||
LinuxDoc, DocBook, Ascii.)
|
||||
The string can contain spaces and so
|
||||
is wrapped in "...".
|
||||
rotateAngle 30 Rotation of the data.
|
||||
|
@ -245,8 +245,7 @@
|
||||
## Trying to incorporate the best of AucTeX and HM--HTML modes
|
||||
##
|
||||
# "C-z" is used in HM--HTML-mode for paragraph styles so try to support
|
||||
# similar here especially for LinuxDoc (although LinuxDoc isn't only for
|
||||
# making HTML).
|
||||
# similar here.
|
||||
##
|
||||
\bind "C-c C-l" "dialog-show latexlog" # show warning log
|
||||
\bind "C-c C-o" "error-next"
|
||||
|
@ -496,7 +496,7 @@ def processLayoutFile(file, bool_docbook, bool_linuxdoc):
|
||||
'''
|
||||
classname = file.split(os.sep)[-1].split('.')[0]
|
||||
# return ('LaTeX', '[a,b]', 'a', ',b,c', 'article') for \DeclearLaTeXClass[a,b,c]{article}
|
||||
p = re.compile(r'\Declare(LaTeX|DocBook|LinuxDoc)Class\s*(\[([^,]*)(,.*)*\])*\s*{(.*)}')
|
||||
p = re.compile(r'\Declare(LaTeX|DocBook)Class\s*(\[([^,]*)(,.*)*\])*\s*{(.*)}')
|
||||
for line in open(file).readlines():
|
||||
res = p.search(line)
|
||||
if res != None:
|
||||
@ -558,7 +558,7 @@ def checkLatexConfig(check_config, bool_docbook, bool_linuxdoc):
|
||||
# Construct the list of classes to test for.
|
||||
# build the list of available layout files and convert it to commands
|
||||
# for chkconfig.ltx
|
||||
p1 = re.compile(r'\Declare(LaTeX|DocBook|LinuxDoc)Class')
|
||||
p1 = re.compile(r'\Declare(LaTeX|DocBook)Class')
|
||||
testclasses = list()
|
||||
for file in glob.glob( os.path.join('layouts', '*.layout') ) + \
|
||||
glob.glob( os.path.join(srcdir, 'layouts', '*.layout' ) ) :
|
||||
|
@ -186,9 +186,9 @@ LyXTextClassList::addTextClass(std::string const & textclass, std::string const
|
||||
//
|
||||
// This is a C++ version of function processLayoutFile in configure.py,
|
||||
// which uses the following regex
|
||||
// \Declare(LaTeX|DocBook|LinuxDoc)Class\s*(\[([^,]*)(,.*)*\])*\s*{(.*)}
|
||||
// \Declare(LaTeX|DocBook)Class\s*(\[([^,]*)(,.*)*\])*\s*{(.*)}
|
||||
ifstream ifs(layout_file.c_str());
|
||||
static regex const reg("^#\\s*\\\\Declare(LaTeX|DocBook|LinuxDoc)Class\\s*"
|
||||
static regex const reg("^#\\s*\\\\Declare(LaTeX|DocBook)Class\\s*"
|
||||
"(?:\\[([^,]*)(?:,.*)*\\])*\\s*\\{(.*)\\}\\s*");
|
||||
string line;
|
||||
while (getline(ifs, line)) {
|
||||
|
Loading…
Reference in New Issue
Block a user