Permalink
Browse files

Make width a per-wiki configurable option

  • Loading branch information...
1 parent 18e64e3 commit 83b23736d084719154946652473492716cc94e52 @rubys committed Apr 25, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 demo/wiki.rb
View
5 demo/wiki.rb
@@ -13,7 +13,7 @@
markdown = Redcarpet::Markdown.new(Redcarpet::Render::XHTML)
-_html _width: 80 do
+_html _width: $WIDTH do
_head_ do
_title file
_style %{
@@ -252,6 +252,9 @@
# Customize where the wiki data is stored
WIKIDATA = '/full/path/to/data/directory'
+# Width to wrap lines in output HTML produced (remove to disable wrapping)
+$WIDTH = 80
+
# git author e-mail address override
require 'wunderbar'
require 'etc'

0 comments on commit 83b2373

Please sign in to comment.