mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
doc_toc.py: remove non-ascii character since LyX.py can't encode it at the moment
LyX.py: fix thinko that lead to out of range list git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20173 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2ec54cfde7
commit
350dad6f65
@ -45,7 +45,7 @@ import depend
|
||||
info = { 'cs' : ('czech', 'german', 'latin2', "Obsah dokumentace LyXu"),
|
||||
'da' : ('danish', 'german', 'latin1', "Indholdsfortegnelse over LyX's dokumentation"),
|
||||
'de' : ('german', 'german', 'latin1', "Inhaltsverzeichnis LyX Dokumentation"),
|
||||
'es' : ('spanish', 'spanish', 'latin1', "Índice general LyX documentation"),
|
||||
'es' : ('spanish', 'spanish', 'latin1', "Indice general LyX documentation"),
|
||||
'fr' : ('french', 'french', 'latin1', "Plan de la documentation LyX"),
|
||||
'ru' : ('russian', 'english', 'koi8-r', "LyX Documentation Table of Contents"),
|
||||
'sl' : ('slovene', 'german', 'latin2', "Kazalo dokumentacije LyXa"),
|
||||
|
@ -541,7 +541,7 @@ class LyX_Base:
|
||||
k = k + 1
|
||||
|
||||
# trim empty lines in the end.
|
||||
while par[-1].strip() == '' and par:
|
||||
while par and par[-1].strip():
|
||||
par.pop()
|
||||
|
||||
toc_par.append(Paragraph(section, par))
|
||||
|
Loading…
Reference in New Issue
Block a user