White space change only (remove spaces at the end of lines)

This commit is contained in:
José Matos 2016-08-01 10:53:10 +01:00
parent 68a0822e25
commit 41666164f7

View File

@ -106,7 +106,7 @@ def setEnviron():
def copy_tree(src, dst, preserve_symlinks=False, level=0): def copy_tree(src, dst, preserve_symlinks=False, level=0):
''' Copy an entire directory tree 'src' to a new location 'dst'. ''' Copy an entire directory tree 'src' to a new location 'dst'.
Code inspired from distutils.copy_tree. Code inspired from distutils.copy_tree.
Copying ignores non-regular files and the cache directory. Copying ignores non-regular files and the cache directory.
Pipes may be present as leftovers from LyX for lyx-server. Pipes may be present as leftovers from LyX for lyx-server.
@ -115,7 +115,7 @@ def copy_tree(src, dst, preserve_symlinks=False, level=0):
copied as symlinks (on platforms that support them!); otherwise copied as symlinks (on platforms that support them!); otherwise
(the default), the destination of the symlink will be copied. (the default), the destination of the symlink will be copied.
''' '''
if not os.path.isdir(src): if not os.path.isdir(src):
raise FileError, \ raise FileError, \
"cannot copy tree '%s': not a directory" % src "cannot copy tree '%s': not a directory" % src
@ -124,12 +124,12 @@ def copy_tree(src, dst, preserve_symlinks=False, level=0):
except os.error, (errno, errstr): except os.error, (errno, errstr):
raise FileError, \ raise FileError, \
"error listing files in '%s': %s" % (src, errstr) "error listing files in '%s': %s" % (src, errstr)
if not os.path.isdir(dst): if not os.path.isdir(dst):
os.makedirs(dst) os.makedirs(dst)
outputs = [] outputs = []
for name in names: for name in names:
src_name = os.path.join(src, name) src_name = os.path.join(src, name)
dst_name = os.path.join(dst, name) dst_name = os.path.join(dst, name)
@ -147,7 +147,7 @@ def copy_tree(src, dst, preserve_symlinks=False, level=0):
outputs.append(dst_name) outputs.append(dst_name)
else: else:
logger.info("Ignore non-regular file %s", src_name) logger.info("Ignore non-regular file %s", src_name)
return outputs return outputs
@ -766,7 +766,7 @@ def checkConverterEntries():
\converter knitr xetex "%%" "" \converter knitr xetex "%%" ""
\converter knitr luatex "%%" ""''']) \converter knitr luatex "%%" ""'''])
# #
checkProg('a Sweave -> R/S code converter', ['Rscript --verbose --no-save --no-restore $$s/scripts/lyxstangle.R $$i $$e $$r'], checkProg('a Sweave -> R/S code converter', ['Rscript --verbose --no-save --no-restore $$s/scripts/lyxstangle.R $$i $$e $$r'],
rc_entry = [ r'\converter sweave r "%%" ""' ]) rc_entry = [ r'\converter sweave r "%%" ""' ])
# #
checkProg('a knitr -> R/S code converter', ['Rscript --verbose --no-save --no-restore $$s/scripts/lyxknitr.R $$p$$i $$p$$o $$e $$r tangle'], checkProg('a knitr -> R/S code converter', ['Rscript --verbose --no-save --no-restore $$s/scripts/lyxknitr.R $$p$$i $$p$$o $$e $$r tangle'],
@ -863,7 +863,7 @@ def checkConverterEntries():
# #
checkProg('a RTF -> HTML converter', ['unrtf --html $$i > $$o'], checkProg('a RTF -> HTML converter', ['unrtf --html $$i > $$o'],
rc_entry = [ r'\converter rtf html "%%" ""' ]) rc_entry = [ r'\converter rtf html "%%" ""' ])
# Do not define a converter to pdf6, ps is a pure export format # Do not define a converter to pdf6, ps is a pure export format
checkProg('a PS to PDF converter', ['ps2pdf $$i $$o'], checkProg('a PS to PDF converter', ['ps2pdf $$i $$o'],
rc_entry = [ r'\converter ps pdf "%%" ""' ]) rc_entry = [ r'\converter ps pdf "%%" ""' ])
# #
@ -1162,19 +1162,19 @@ def processLayoutFile(file, bool_docbook):
Declare lines look like this: Declare lines look like this:
\DeclareLaTeXClass[<requirements>]{<description>} \DeclareLaTeXClass[<requirements>]{<description>}
Optionally, a \DeclareCategory line follows: Optionally, a \DeclareCategory line follows:
\DeclareCategory{<category>} \DeclareCategory{<category>}
So for example (article.layout, scrbook.layout, svjog.layout) So for example (article.layout, scrbook.layout, svjog.layout)
\DeclareLaTeXClass{article} \DeclareLaTeXClass{article}
\DeclareCategory{Articles} \DeclareCategory{Articles}
\DeclareLaTeXClass[scrbook]{book (koma-script)} \DeclareLaTeXClass[scrbook]{book (koma-script)}
\DeclareCategory{Books} \DeclareCategory{Books}
\DeclareLaTeXClass[svjour,svjog.clo]{article (Springer - svjour/jog)} \DeclareLaTeXClass[svjour,svjog.clo]{article (Springer - svjour/jog)}
we'd expect this output: we'd expect this output: