]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* Save index after previewing page edit, since even previewing can create
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 22 Sep 2007 18:31:52 +0000 (18:31 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 22 Sep 2007 18:31:52 +0000 (18:31 +0000)
  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.

IkiWiki/CGI.pm
debian/changelog
doc/bugs/teximg_does_not_work_Preview.mdwn

index c785e31dec166f2d8ef18caaad14e5bdd37a0734..155010a97e6d606a1fff8af7b85ff93aef8fc0f5 100644 (file)
@@ -506,6 +506,7 @@ sub cgi_editpage ($$) { #{{{
                }
                
                showform($form, \@buttons, $session, $q);
+               saveindex();
        }
        else {
                # save page
index 6935ccced19c6fc8d83fc6ff82988a104d7cb587..97bf74136cac46d991208f2da755d05a435dbf57 100644 (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
 
index 0a2a6d748542ed56508c2d3866942d10ef451625..1900ac2999b488652f2d074a9a112e0a2e2982fd 100644 (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]]