mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
updatedocs.py: more robust save with LyX binary
The "force" argument is more robust than trying to make an edit and
then inverse the edit.
The "force" argument exists since fe09ddf1
.
This commit is contained in:
parent
226ce75054
commit
29ae7b31c2
@ -40,10 +40,7 @@ def convertdir(docdir, prefix, lyx2lyx, lyx, systemlyxdir):
|
||||
sys.stderr.write('Converting %s\n' % os.path.join(prefix, i))
|
||||
subprocess.call(cmd)
|
||||
if lyx != '':
|
||||
# This is a hack, but without modifying the doc LyX refuses to save and stays open
|
||||
# FIXME: Is self-insert a; char-delete-backward always a noop?
|
||||
# What if change-tracking is enabled?
|
||||
cmd = [lyx, '-f', '-x', 'command-sequence self-insert a; char-delete-backward; buffer-write; lyx-quit', i]
|
||||
cmd = [lyx, '-f', '-x', 'command-sequence buffer-write force; lyx-quit', i]
|
||||
subprocess.call(cmd)
|
||||
os.chdir(olddir)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user