diff --git a/README.md b/README.md index e744ca7..7611be3 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,6 @@ and Sweave. * Capture PyPlot, Gadfly or Winston figures. * Supports LaTex, Pandoc and Github markdown and reStructuredText output -**Not implemented** - -* Script reader -* Inline code -* Caching ## Chunk options diff --git a/src/Weave.jl b/src/Weave.jl index d990b2e..0db1fc5 100644 --- a/src/Weave.jl +++ b/src/Weave.jl @@ -182,7 +182,12 @@ function run(parsed) merge!(chunk, options) delete!(chunk, :options) - chunk[:eval] || (chunk[:result] = ""; continue) #Do nothing if eval is false + if !chunk[:eval] + chunk[:result] = "" + parsed[i] = copy(chunk) + i += 1 + continue #Do nothing if eval is false + end report.fignum = 1 report.cur_result = "" diff --git a/src/formatters.jl b/src/formatters.jl index 638af9b..a37f438 100644 --- a/src/formatters.jl +++ b/src/formatters.jl @@ -56,7 +56,7 @@ function format_codechunk(chunk, formatdict) if !chunk[:eval] if chunk[:echo] - result = "$(formatdict[:codestart])$(chunk[:content])$(formatdict[:codeend])" + result = "$(formatdict[:codestart])$(chunk[:content])\n$(formatdict[:codeend])" return result else r = ""