]> sipb.mit.edu Git - ikiwiki.git/commitdiff
(no commit message)
authorPlareplane <Plareplane@web>
Sat, 27 Sep 2008 19:23:49 +0000 (15:23 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 27 Sep 2008 19:23:49 +0000 (15:23 -0400)
doc/bugs/previewing_new_page_can_leave_files_dangling.mdwn [new file with mode: 0644]

diff --git a/doc/bugs/previewing_new_page_can_leave_files_dangling.mdwn b/doc/bugs/previewing_new_page_can_leave_files_dangling.mdwn
new file mode 100644 (file)
index 0000000..625c48b
--- /dev/null
@@ -0,0 +1,15 @@
+Steps to reproduce:
+
+1. Make a new post via web interface.
+2. Use a directive that generates extra files (say, teximg).
+3. Click cancel.
+
+What I expect:
+
+The files that teximg created should (eventually) be removed, along with the whole directory of the non-existant new post.
+
+What I got:
+
+I refresh and rebuild a few times, and the files are still dangling there.  If I then try to create a post with the same name and same content, I get a "file independently created, not overwriting" error.
+
+For teximg, I think this can be fixed by using data url like graphviz, but I think plugins in general should be allowed to create files during preview and have them be cleaned up when the user presses cancel.  This segues into what my actual problem is: I wrote a htmlize plugin to format .tex files as page images (following hnb and teximg, since I was completely unfamiliar with perl until yesterday (and ikiwiki until a few days ago)), and there is no way to tell if I'm in preview mode (so I can use data url and not leave files dangling) or commit mode (so I can use real images and not have bloated html).