summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. Tyler Ballance <tyler@slide.com>2009-05-25 15:48:59 -0700
committerR. Tyler Ballance <tyler@slide.com>2009-05-25 15:48:59 -0700
commit933c1c9ca6b735ee416c2c2a740a02dd58a6c07e (patch)
tree8e72d80c3bd07c2565e2b5690157ec462078c61b
parentb39834eef474839b7ee88cb0b3ce2a29e88bde47 (diff)
downloadpython-cheetah-933c1c9ca6b735ee416c2c2a740a02dd58a6c07e.tar.gz
Remove leading tabs to make sure we're going to properly parse the Markdown
Signed-off-by: R. Tyler Ballance <tyler@slide.com>
-rw-r--r--recipes/content/Basic_Inheritance.html4
-rw-r--r--recipes/index.tmpl24
2 files changed, 13 insertions, 15 deletions
diff --git a/recipes/content/Basic_Inheritance.html b/recipes/content/Basic_Inheritance.html
index 6824280..8fe216d 100644
--- a/recipes/content/Basic_Inheritance.html
+++ b/recipes/content/Basic_Inheritance.html
@@ -351,9 +351,7 @@ border:dashed 1px #888; padding:6px; font-size:1.1em; color:#fff;}
<div id="centercontent">
- <pre><code> Basic Inheritance
-</code></pre>
-<p>=================</p>
+ <h1>Basic Inheritance</h1>
</div>
<div id="rightcontent">
diff --git a/recipes/index.tmpl b/recipes/index.tmpl
index cd068b5..1e085ca 100644
--- a/recipes/index.tmpl
+++ b/recipes/index.tmpl
@@ -39,18 +39,18 @@ from the old Wiki
#set content = $fd.readlines()
#silent $fd.close()
#set tmpl = Template('''
- #from Cheetah.Filters import Markdown
- #import WikiRoot
- #extends WikiRoot.WikiRoot
- #attr PathPrefix = '../../'
- #def pagename()
- #return $PageName
- #end def
-
- #def content
- #transform Markdown
- $recipe
- #end def
+#from Cheetah.Filters import Markdown
+#import WikiRoot
+#extends WikiRoot.WikiRoot
+#attr PathPrefix = '../../'
+#def pagename()
+ #return $PageName
+#end def
+
+#def content
+#transform Markdown
+$recipe
+#end def
''', searchList=[{'PageName' : $filepath.replace('.markdown', ''), 'recipe' : ''.join($content)}])
#set fd = open('%s%s' % ($ExecuteContentPath, $filepath.replace('.markdown', '.html')), 'w')
#silent fd.write(unicode(tmpl).encode('utf-8'))