From: joey Date: Sat, 22 Sep 2007 18:31:52 +0000 (+0000) Subject: * Save index after previewing page edit, since even previewing can create X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/f9f38ae31c239ce2f44ea0ed2984295aac09ead3 * 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. --- 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 Sat, 22 Sep 2007 12:36:37 -0400 + -- Joey Hess 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]]