Patched wiki2html to give correct source code snippet output.

This commit is contained in:
Griatch 2011-09-11 12:17:33 +02:00
parent 22b23be095
commit eae89eabc0
31 changed files with 1028 additions and 175 deletions

View file

@ -0,0 +1,14 @@
Index: wiki2html/lib/wiki_syntax.rb
===================================================================
--- wiki2html/lib/wiki_syntax.rb (revision 1961)
+++ wiki2html/lib/wiki_syntax.rb (working copy)
@@ -227,7 +227,8 @@
block
else
# remove newlines within normal (non-code) blocks of text
- "<p>" + block.gsub(/\n/, ' ') + "</p>"
+ #"<p>" + block.gsub(/\n/, ' ') + "</p>"
+ "<p>" + block + "</p>"
end
end.join
end

View file

@ -11,6 +11,11 @@
#
# This is a ruby program! Sorry, it was the best match I could find to do this.
# So if you don't have ruby, you need that too.
#
# You also need to patch a bug in above program to make code snippets work. From the wiki2rest folder,
# apply the patch like this:
#
# patch -p0 -i wiki2html.patch
#
# 2) Install pandoc:
#