mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
8f00970bf4
commit
8ed68ea860
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user