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