convert frenchb language also in the body

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10304 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2005-07-17 23:55:05 +00:00
parent 8f00970bf4
commit 8ed68ea860
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-07-18 José Matos <jamatos@lyx.org>
* lyx_1_4.py (convert_french): convert language also in the body.
2005-07-15 José Matos <jamatos@lyx.org>
* Makefile.am: new file for correct dealing with python scripts.

View File

@ -1857,6 +1857,16 @@ def convert_french(file):
if i != -1:
file.header[i] = "\\language french"
# Change language in the document body
regexp = re.compile(r'^\\lang\s+frenchb')
i = 0
while 1:
i = find_re(file.body, regexp, i)
if i == -1:
break
file.body[i] = "\\language french"
i = i + 1
def remove_paperpackage(file):
i = find_token(file.header, '\\paperpackage', 0)