Permalink
Browse files

Changed sample code format and shortened their length in built-in man…

…ual.
  • Loading branch information...
1 parent 11e5f3b commit c7fc132ea229c24b1f1461b9f18c18366fe2d648 @ashbb ashbb committed Mar 23, 2011
Showing with 112 additions and 65 deletions.
  1. +1 −1 VERSION
  2. +3 −3 lib/shoes/help.rb
  3. +108 −61 static/manual-en.txt
View
@@ -1 +1 @@
-0.195.0
+0.196.0
View
@@ -80,11 +80,11 @@ def show_page paras, intro = false
text.gsub CODE_RE do |lines|
lines = lines.split NL
n = lines[1] =~ /\#\!ruby/ ? 2 : 1
- code = lines[n...-1].join(NL+' ')
+ _code = lines[n...-1].join(NL+' ')
flow do
background rgb(190, 190, 190), curve: 5
- inscription link(fg('Run this', green)){eval mk_executable(code), TOPLEVEL_BINDING}, margin_left: 480
- para ' ', fg(code, maroon), NL
+ inscription link(fg('Run this', green)){eval mk_executable(_code), TOPLEVEL_BINDING}, margin_left: 480
+ para fg(code(' ' + _code), maroon), NL, margin_left: -10
end
para
end
Oops, something went wrong.

0 comments on commit c7fc132

Please sign in to comment.