Issue 221 in ulipad: 建议更新docutils版本到0.6

2 views
Skip to first unread message

uli...@googlecode.com

unread,
Dec 8, 2009, 1:40:16 AM12/8/09
to uli...@googlegroups.com
Status: New
Owner: ----

New issue 221 by yanckin: 建议更新docutils版本到0.6
http://code.google.com/p/ulipad/issues/detail?id=221

看了下Ulipad中使用的docutils还是0.4,现在最新的已经是0.6了。对image指令
的支持,参数scale,align不能设置。

发现直接把docutils拷贝过去覆盖预览会报UnicodeError,设置下sitecustomize.py
添加这两句:
import sys
sys.setdefaultencoding('utf-8')

这样就解决,上述参数可以使用了




--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

uli...@googlecode.com

unread,
Dec 8, 2009, 2:00:28 AM12/8/09
to uli...@googlegroups.com

Comment #1 on issue 221 by limodou: 建议更新docutils版本到0.6
http://code.google.com/p/ulipad/issues/detail?id=221

I've upgrade docutils to 0.6 version, and found no errors when render rst
file which
including Chinese to html. So you may try the new version from svn again.

uli...@googlecode.com

unread,
Dec 8, 2009, 2:14:32 AM12/8/09
to uli...@googlegroups.com

Comment #2 on issue 221 by yanckin: 建议更新docutils版本到0.6
http://code.google.com/p/ulipad/issues/detail?id=221

Thks.But if I hadn't modified the file sitecustomize.py,it still occur
these errors:

File "/home/wayhome/code/svn/ulipad/packages/docutils/readers/__init__.py",
line
80, in new_document
document = utils.new_document(self.source.source_path, self.settings)
File "/home/wayhome/code/svn/ulipad/packages/docutils/utils.py", line
424, in
new_document
source_path = decode_path(source_path)
File "/home/wayhome/code/svn/ulipad/packages/docutils/utils.py", line
340, in
decode_path
path = path.decode(sys.getfilesystemencoding(), 'strict')
File "/usr/lib/python2.6/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode characters in position
43-50: ordinal not
in range(128)

The last version doesn't need to modify it.
It's fit for me now,but I don't think that other people will do this way.

uli...@googlecode.com

unread,
Dec 30, 2009, 3:51:57 AM12/30/09
to uli...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 221 by limodou: 建议更新docutils版本到0.6
http://code.google.com/p/ulipad/issues/detail?id=221

Fixed already.
Reply all
Reply to author
Forward
0 new messages