diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-07-29 04:13:46 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-07-29 04:13:46 +0000 |
commit | ab66d7e50ea6cea8a72f20df5754980abf3c93bb (patch) | |
tree | 96bbfcf29222d396d66ff690f130270c25fa3db2 | |
parent | e47be9748bd7e74a9c71e58003e32e3ccee196ad (diff) |
web commit by http://ethan.betacantrips.com/: had some other stuff in the patch
-rw-r--r-- | doc/todo/missingparents.pm.mdwn | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/doc/todo/missingparents.pm.mdwn b/doc/todo/missingparents.pm.mdwn index 152c82402..bf5a78217 100644 --- a/doc/todo/missingparents.pm.mdwn +++ b/doc/todo/missingparents.pm.mdwn @@ -69,7 +69,7 @@ Index: IkiWiki/Plugin/missingparents.pm =================================================================== --- IkiWiki/Plugin/missingparents.pm (revision 0) +++ IkiWiki/Plugin/missingparents.pm (revision 0) -@@ -0,0 +1,136 @@ +@@ -0,0 +1,142 @@ +#!/usr/bin/perl +# missingparents plugin: detect missing parents of pages and create them +package IkiWiki::Plugin::missingparents; @@ -190,6 +190,12 @@ Index: IkiWiki/Plugin/missingparents.pm + my @new; + + foreach my $file (@{$files}) { ++ if ($ownfiles{$file}) { ++ # someone edited our file, making it the ++ # user's problem ++ delete $ownfiles{$file}; ++ next; ++ } + my $page = pagename $file; + my $newfile = ""; + foreach my $parent (split '/', $page) { @@ -206,19 +212,6 @@ Index: IkiWiki/Plugin/missingparents.pm +} #}}} + +1 -Index: IkiWiki/Plugin/rst.pm -=================================================================== ---- IkiWiki/Plugin/rst.pm (revision 3926) -+++ IkiWiki/Plugin/rst.pm (working copy) -@@ -25,7 +25,7 @@ - html = publish_string(stdin.read(), writer_name='html', - settings_overrides = { 'halt_level': 6, - 'file_insertion_enabled': 0, -- 'raw_enabled': 0 } -+ 'raw_enabled': 1 } - ); - print html[html.find('<body>')+6:html.find('</body>')].strip(); - "; Index: IkiWiki.pm =================================================================== --- IkiWiki.pm (revision 3926) |