From 34acd9bf367798f8665be4a9b83db30d75fe6463 Mon Sep 17 00:00:00 2001 From: lars Date: Sun, 18 Apr 2010 01:31:48 +0000 Subject: [PATCH] unified indentation (spaces instead of tabs) fixed non-ascii handling for creoleparser (working around a possible creoleparser-bug that causes parsing to fail for unicode text with umlauts - only utf-8 encoded strings work) --- .../templates/nodes/brainstorming.html | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/wortschlucker/templates/nodes/brainstorming.html b/wortschlucker/templates/nodes/brainstorming.html index 5fdc3a8..45f12dd 100644 --- a/wortschlucker/templates/nodes/brainstorming.html +++ b/wortschlucker/templates/nodes/brainstorming.html @@ -5,17 +5,19 @@ xmlns:py="http://genshi.edgewall.org/"> - **enthaelt**, dann muss die Datei utf8-codiert sein und der Text + Falls er **enthält**, dann muss die Datei utf8-codiert sein und der Text muss in unicode verwandelt werden (unicode(foo)). - """) - from creoleparser import text2html - ?> + """.encode("utf-8") + content01 = text2html(content01, encoding=None) + ?> @@ -23,12 +25,12 @@

${title}

-
- - ${Markup(text2html(content01))} -
- ${poll_new_small()} - +
+ + ${Markup(content01)} +
+ ${poll_new_small()} +