aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/inline_raw_files.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-01-25 15:10:50 -0400
committerJoey Hess <joey@kitenet.net>2011-01-25 15:10:50 -0400
commit8cd0a1c434549e2718fe7b3441ce24e6ff759bea (patch)
treea3c760668e5505b8d6ceb101ec6dedca4f675d07 /doc/todo/inline_raw_files.mdwn
parent313b06878c2e330848b4db6e12921366d93706c2 (diff)
downloadikiwiki-8cd0a1c434549e2718fe7b3441ce24e6ff759bea.tar
ikiwiki-8cd0a1c434549e2718fe7b3441ce24e6ff759bea.tar.gz
review
Diffstat (limited to 'doc/todo/inline_raw_files.mdwn')
-rw-r--r--doc/todo/inline_raw_files.mdwn20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/todo/inline_raw_files.mdwn b/doc/todo/inline_raw_files.mdwn
index 58920cc12..ef827fb3f 100644
--- a/doc/todo/inline_raw_files.mdwn
+++ b/doc/todo/inline_raw_files.mdwn
@@ -64,3 +64,23 @@ usage
>>> will be easier to merge or reject. Note the new branch name:
>>> `raw_inline`. I'll open separate todo items for items mentioned in my
>>> previous comment. --[[wtk]]
+
+----
+
+Reviewing your patch the first thing I see is this:
+
+<pre>
++ if (! $file) {
++ error("Missing file.");
++ }
+</pre>
+
+This fails if the filename is "0". Also, `pagetype()`
+currently cannot fail; allowing it to crash the entire
+wiki build if the filename is somehow undefined seems
+unwise.
+
+I didn't look much further, because it seems to me what you're trying to do
+can be better accomplished by using the highlight plugin. Assuming the raw
+file you want to inline and comment on is some source-code-like thing,
+which seems likely. --[[Joey]] [[!tag reviewed]]