diff --git a/codepot/src/css/common.css b/codepot/src/css/common.css index 7483ede9..17c3af83 100644 --- a/codepot/src/css/common.css +++ b/codepot/src/css/common.css @@ -216,6 +216,10 @@ body { width: inherit; } +.content .mainarea pre.wiki { + white-space: pre-wrap; +} + .content .mainarea tt { /* padding: .1em .1em .1em .1em; diff --git a/codepot/src/js/creole.js b/codepot/src/js/creole.js index 75c3bbff..1313f05f 100644 --- a/codepot/src/js/creole.js +++ b/codepot/src/js/creole.js @@ -300,6 +300,7 @@ var Url = { br: { tag: 'br', regex: /\\\\/ }, preBlock: { tag: 'pre', capture: 2, + attrs: { 'class': 'wiki' }, regex: /(^|\n)\{\{\{\n((.*\n)*?)\}\}\}(\n|$)/, replaceRegex: /^ ([ \t]*\}\}\})/gm, replaceString: '$1' },