Drei alte Fehler behoben

- create_picture: </svg> und Dateiausgabe erst nach allen Zeilen
  (vorher pro Zeile, kaputtes SVG bei mehreren Zeilen)
- yalign=bottom: word_height wird jetzt berechnet (vorher NameError)
- CompleteEnding: ValueError statt undefiniertem Csv2CouchError

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Michael Stangl
2026-10-09 08:55:46 +02:00
co-authored by Claude Opus 5.5
parent d4cb697f14
commit 75db9b7024
2 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ def get_translation(cfg_path, sec_name):
def CompleteEnding(path, newext):
''' Fügt die gegebene File Extension an den Filename/Pfad
'''
if not path: raise Csv2CouchError('no path given')
if not path: raise ValueError('no path given')
path, ext = os.path.splitext(path)
if not re.match(newext, ext):
path = path +'.'+newext