Submitted by : 127.0.0.1 at: 2004-05-20T10:15:45+00:00 (13 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

When you upload a file or an image, ZWiki appends a bit of HTML to the end of the page text. This does not produce the desired effect on RestructuredText pages.

I have a patch that adds proper RestructuredText formatting for uploaded images and files. I'll try to upload it here if I manage to figure out how.

ZWiki-0.30.0-mg-upoad-images.patch


comments:

Almost fixed in current darcs -- Tue, 20 Jul 2004 10:06:24 -0700 reply
This bit is still missing:

 diff -rN -u ZWiki-old/pagetypes/rst.py ZWiki-new/pagetypes/rst.py
 --- ZWiki-old/pagetypes/rst.py  2004-07-20 18:45:39.000000000 +0300
 +++ ZWiki-new/pagetypes/rst.py  2004-07-20 20:02:20.000000000 +0300
 @@ -70,6 +70,5 @@
          return '\n\n.. image:: %s\n' % path

      def linkFile(self, page, id, path):
 -        # how do you link a file in RST ?
 -        return AbstractPageType.linkFile(self, page, id, path)
 +        return '\n\n!`%s`__\n\n__ %s\n' % (id, path)

duplicate --simon, Sat, 07 Aug 2004 23:00:59 -0700 reply
Actually, when I tried to apply this I found #737 uploading images to reStructuredText pages adds html tag has already been there. Thanks!

property change --simon, Sat, 07 Aug 2004 23:01:11 -0700 reply
Status: open => closed

... --simon, Sun, 08 Aug 2004 17:23:18 -0700 reply
it was still missing, now added.

... --betabug, Wed, 21 Feb 2007 08:31:10 +0000 reply
Name: #814 camelia => #814 file and image upload for ReStructuredText pages Category: user-dtmlscripting => user-editing-rst Severity: funded => normal Status: open => closed