summaryrefslogtreecommitdiff
path: root/www/zope210/patches/patch-ae
blob: e01ca9c50fc69aaa85cc32efe72cd448d7e0d706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ae,v 1.1.1.1 2007/12/18 15:35:28 taca Exp $

--- lib/python/zope/structuredtext/stng.py.orig	2007-03-25 18:51:59.000000000 +0900
+++ lib/python/zope/structuredtext/stng.py
@@ -105,6 +105,9 @@ def structurize(paragraphs, delimiter=re
     [paragraph,[sub-paragraphs]]
     """
 
+    if type(paragraphs) == type(''):
+        paragraphs = unicode(paragraphs, 'utf-8')
+
     currentlevel   = 0
     currentindent  = 0
     levels         = {0:0}