From 350dad6f652b3bba1d12b308717e1bc5690c720a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Sun, 9 Sep 2007 17:02:48 +0000 Subject: [PATCH] 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 --- lib/doc/doc_toc.py | 2 +- lib/lyx2lyx/LyX.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/doc/doc_toc.py b/lib/doc/doc_toc.py index 6dd50adb53..b4b3e7da71 100755 --- a/lib/doc/doc_toc.py +++ b/lib/doc/doc_toc.py @@ -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"), diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py index 8810e5f016..b29da4e771 100644 --- a/lib/lyx2lyx/LyX.py +++ b/lib/lyx2lyx/LyX.py @@ -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))