* 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.
master
joey 2007-09-22 18:31:52 +00:00
parent 811b8726db
commit f9f38ae31c
3 changed files with 8 additions and 1 deletions

View File

@ -506,6 +506,7 @@ sub cgi_editpage ($$) { #{{{
}
showform($form, \@buttons, $session, $q);
saveindex();
}
else {
# save page

6
debian/changelog vendored
View File

@ -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

View File

@ -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]]