web commit by EthanGlasserCamp: exactly what it sounds like
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 8 Nov 2006 20:10:44 +0000 (20:10 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 8 Nov 2006 20:10:44 +0000 (20:10 +0000)
doc/patchqueue/skip_option_for_inline_plugin.mdwn [new file with mode: 0644]

diff --git a/doc/patchqueue/skip_option_for_inline_plugin.mdwn b/doc/patchqueue/skip_option_for_inline_plugin.mdwn
new file mode 100644 (file)
index 0000000..60be067
--- /dev/null
@@ -0,0 +1,16 @@
+This addresses [[todo/skip_option_for_inline_plugin]].
+
+    diff -urx .svn ikiwiki-orig/IkiWiki/Plugin/inline.pm ikiwiki/IkiWiki/Plugin/inline.pm
+    --- ikiwiki-orig/IkiWiki/Plugin/inline.pm   2006-11-08 01:02:33.000000000 -0500
+    +++ ikiwiki/IkiWiki/Plugin/inline.pm        2006-11-08 15:08:04.000000000 -0500
+    @@ -72,6 +72,10 @@
+                return "unknown sort type $params{sort}";
+        }
+
+    +   if ($params{skip}) {
+    +           @list=@list[$params{skip} .. scalar @list - 1];
+    +
+    +   }
+        if ($params{show} && @list > $params{show}) {
+                @list=@list[0..$params{show} - 1];
+        }