aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-09-22 18:31:52 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-09-22 18:31:52 +0000
commitf9f38ae31c239ce2f44ea0ed2984295aac09ead3 (patch)
tree0c954a83a9f2f2b077f7ded3d50b6bc484f49d91
parent811b8726dbd6e274f969738c4e19f0b3dc3dae92 (diff)
downloadikiwiki-f9f38ae31c239ce2f44ea0ed2984295aac09ead3.tar
ikiwiki-f9f38ae31c239ce2f44ea0ed2984295aac09ead3.tar.gz
* Save index after previewing page edit, since even previewing can create
files in some situations, and this is appropriate in some cases, such as the teximg plugin's error log file. Such files will be automatically cleaned up at an appopriate later time.
-rw-r--r--IkiWiki/CGI.pm1
-rw-r--r--debian/changelog6
-rw-r--r--doc/bugs/teximg_does_not_work_Preview.mdwn2
3 files changed, 8 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index c785e31de..155010a97 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -506,6 +506,7 @@ sub cgi_editpage ($$) { #{{{
}
showform($form, \@buttons, $session, $q);
+ saveindex();
}
else {
# save page
diff --git a/debian/changelog b/debian/changelog
index 6935ccced..97bf74136 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,8 +12,12 @@ ikiwiki (2.9) UNRELEASED; urgency=low
* img: Allow link=somepage to cause the image to link to a given page.
Slight overriding of link, as link=no is still used to disable the linking
entirely. Unless you have a page named "no"..
+ * Save index after previewing page edit, since even previewing can create
+ files in some situations, and this is appropriate in some cases, such as
+ the teximg plugin's error log file.
+ Such files will be automatically cleaned up at an appopriate later time.
- -- Joey Hess <joeyh@debian.org> Sat, 22 Sep 2007 12:36:37 -0400
+ -- Joey Hess <joeyh@debian.org> Sat, 22 Sep 2007 14:19:58 -0400
ikiwiki (2.8) unstable; urgency=low
diff --git a/doc/bugs/teximg_does_not_work_Preview.mdwn b/doc/bugs/teximg_does_not_work_Preview.mdwn
index 0a2a6d748..1900ac299 100644
--- a/doc/bugs/teximg_does_not_work_Preview.mdwn
+++ b/doc/bugs/teximg_does_not_work_Preview.mdwn
@@ -8,3 +8,5 @@ In my opinion there are two ways to fix this cleanly:
2. provide a clean way for plugins to create additional files even for previews. This files can be removed when the "Save Page" button is clicked or on the next page view, for example. On this instance one might also reconsider putting all tex-images into one folder and naming them after their md5-cksum. The hashspace may be large, but not infinite. The technically ingenuous user might not be able to handle cross-page Hash-collisions.
+Preview issue [[fixed|done]] (but see
+[[teximg_fails_if_same_tex_is_used_on_multiple_pages]]) --[[Joey]]