Patched wiki2html to give correct source code snippet output.
This commit is contained in:
parent
22b23be095
commit
eae89eabc0
31 changed files with 1028 additions and 175 deletions
14
docs/sphinx/wiki2rest/wiki2html.patch
Normal file
14
docs/sphinx/wiki2rest/wiki2html.patch
Normal 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
|
||||
|
|
@ -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:
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue