<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -106,7 +106,7 @@ def to_html(body,markdown):
     if markdown == 'markdown':
         body_html = markdown2.markdown(body)
     elif markdown == 'textile':
-        body_html = textile.textile(body)
+        body_html = textile.textile(body,)
     else:
         body_html = body
     return body_html
@@ -172,4 +172,4 @@ class NewEntryHandler(TehRequestHandler):
             entry.tags = tags
             entry.comments = comments
         entry.put()
-        self.redirect(entry.url)
+        self.redirect(entry.url())</diff>
      <filename>blog.py</filename>
    </modified>
    <modified>
      <diff>@@ -847,7 +847,7 @@ class Textiler:
         text = self.footnotes(text)
 
         # Convert to desired output.
-        text = unicode(text, encoding)
+        #TEH#text = unicode(text, encoding)
         text = text.encode(output, 'xmlcharrefreplace')
 
         # Sanitize?
@@ -2414,8 +2414,8 @@ class Textiler:
         text = re.sub(r'''{([^}]+)}''', self.macros, text)
 
         # LaTeX style quotes.
-        text = text.replace('\x60\x60', '&amp;#8220;')
-        text = text.replace('\xb4\xb4', '&amp;#8221;')
+        #TEH#text = text.replace('\x60\x60', '&amp;#8220;')
+        #TEH#text = text.replace('\xb4\xb4', '&amp;#8221;')
 
         # Linkify URL and emails.
         url = r'''(?=[a-zA-Z0-9./#])                          # Must start correctly</diff>
      <filename>lib/textile.py</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,8 @@
 	&lt;link href=&quot;/static/css/blueprint/screen.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt;
 	&lt;link href=&quot;/static/css/base.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt;
 {% endblock %}
-
+{% block extracss %} {% endblock %}
+{% block extrajs %} {% endblock %}
 &lt;link rel=&quot;alternate&quot; href=&quot;http://teh.appspot.com/feed&quot; type=&quot;application/atom+xml&quot; title=&quot;Teh blog&quot;/&gt;
 &lt;/head&gt;
 </diff>
      <filename>templates/base.html</filename>
    </modified>
    <modified>
      <diff>@@ -71,13 +71,19 @@ Markup
 &lt;select class=&quot;field select medium&quot; 
 id=&quot;markup&quot; 
 name=&quot;markup&quot;
-tabindex=&quot;3&quot;  
-selected=&quot;{{entry.markdown}}&quot;&gt; 
-&lt;option value=&quot;markdown&quot; 
-&gt;Markdown&lt;/option&gt;
-&lt;option value=&quot;textile&quot; 
+tabindex=&quot;3&quot;&gt; 
+&lt;option
+  {% ifequal  entry.markdown &quot;markdown&quot; %}
+  SELECTED
+  {% endifequal %}
+  value=&quot;markdown&quot;&gt;Markdown&lt;/option&gt;
+&lt;option {% ifequal  entry.markdown &quot;textile&quot; %}
+  SELECTED{% endifequal  %}
+  value=&quot;textile&quot; 
 &gt;Textile&lt;/option&gt;
-&lt;option value=&quot;plain &quot; 
+&lt;option {% ifequal  entry.markdown &quot;plain&quot; %}
+  SELECTED{% endifequal  %}
+  value=&quot;plain &quot; 
 &gt;Plain &lt;/option&gt;
 &lt;/select&gt;
 &lt;/div&gt;</diff>
      <filename>templates/new.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>62137fc5db40c2f97dc16f993e8f3795ca8b9964</id>
    </parent>
  </parents>
  <author>
    <name>btbytes</name>
    <email>pradeep@btbytes.com</email>
  </author>
  <url>http://github.com/btbytes/teh/commit/982bf5a0c041ff9447a4574284a9b231db04d5b6</url>
  <id>982bf5a0c041ff9447a4574284a9b231db04d5b6</id>
  <committed-date>2008-05-04T18:38:59-07:00</committed-date>
  <authored-date>2008-05-04T18:38:59-07:00</authored-date>
  <message>textile unicode bug fixed(hack?); entry edit form shows correct markdown option</message>
  <tree>dd69b1d451d4e9bcc28283a11ca6f9a803a278cf</tree>
  <committer>
    <name>btbytes</name>
    <email>pradeep@btbytes.com</email>
  </committer>
</commit>
