mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 20:17:16 +02:00
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue