summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPlareplane <Plareplane@web>2008-09-27 15:23:49 -0400
committerJoey Hess <joey@kitenet.net>2008-09-27 15:23:49 -0400
commit6817a794a4051e3eeda1b2558e0a74f33ecf9fbe (patch)
treebbfdd22fdb896cb445078a353990278785d2c613
parent55a0361a4768c445216d93314a707dcbd9bc98c7 (diff)
-rw-r--r--doc/bugs/previewing_new_page_can_leave_files_dangling.mdwn15
1 files changed, 15 insertions, 0 deletions
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
index 000000000..625c48ba1
--- /dev/null
+++ b/doc/bugs/previewing_new_page_can_leave_files_dangling.mdwn
@@ -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).