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:
Uwe Stöhr 2007-09-09 17:02:48 +00:00
parent 2ec54cfde7
commit 350dad6f65
2 changed files with 2 additions and 2 deletions

View File

@ -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"),

View File

@ -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))