<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,7 @@
 # Copyright (C) 2009 Christian Neukirchen &lt;purl.org/net/chneukirchen&gt;
 #
 # Challis is freely distributable under the terms of an MIT-style license.
-# See COPYING or http://www.opensource.org/licenses/mit-license.php.
+# See README or &lt;http://www.opensource.org/licenses/mit-license.php&gt;.
 
 class Challis &lt; String
   def pfmt(t)
@@ -34,14 +34,14 @@ class Challis &lt; String
     depth = 0
     to_close = []
 
-    (split(/\n\n+|(?=^(?:  )*(?:\* |# |=+ ))|(---.*?^---)|^(\{\{[\w:. -]+)|^(\}\})/m).map { |par|
+    (split(/\n\n+|(?=^(?:  )*(?:\* |# |=+ ))|^(---.*?^---)|^(\{\{[\w:. -]+)|^(\}\})/m).map { |par|
        case par
        when /\A---html\n(.*)^---/m: $1
        when /\A---\n(.*)^---/m:     %Q{&lt;pre&gt;&lt;code&gt;#{prefmt $1}&lt;/code&gt;&lt;/pre&gt;}
        when /\A\{\{([\w:. -]+)\z/:  %Q{&lt;div class=&quot;#{$1}&quot;&gt;}
        when &quot;}}&quot;:                   %Q{&lt;/div&gt;}
        when /\A\s*\z/:              nil  # ignore
-       when /\A((?:  )*)((?:\* |# |&quot; |.*:: ?|=+ )?)(.*)/m  #/
+       when /\A((?:  )*)((?:\* |# |&quot; |.*::(?: |$)|=+ )?)(.*)/m  #/
          indent, type, text = $1, $2, $3
          
          new_depth = indent.size/2</diff>
      <filename>lib/challis.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,4 @@
+require 'bacon'
 require 'challis'
 
 describe &quot;Challis&quot; do
@@ -356,4 +357,16 @@ IN
 &lt;p&gt;Foo.&lt;/p&gt;&lt;/div&gt;
 OUT
   end
+
+  should &quot;not fail on special cases&quot; do
+    fmt(&lt;&lt;'IN', &lt;&lt;'OUT')
+These are---I think---long dashes.
+
+Test::Unit
+IN
+&lt;p&gt;These are---I think---long dashes.&lt;/p&gt;
+
+&lt;p&gt;Test::Unit&lt;/p&gt;
+OUT
+  end
 end</diff>
      <filename>test/spec_challis.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>83f0f572c9fb9508f5e93b6597d4b1407fef58b4</id>
    </parent>
  </parents>
  <author>
    <name>Christian Neukirchen</name>
    <email>chneukirchen@gmail.com</email>
  </author>
  <url>http://github.com/chneukirchen/challis/commit/7dbf50794b70b1c3b280ba7f98a0014a11458988</url>
  <id>7dbf50794b70b1c3b280ba7f98a0014a11458988</id>
  <committed-date>2009-05-23T17:26:06-07:00</committed-date>
  <authored-date>2009-05-23T17:26:06-07:00</authored-date>
  <message>Fix small issues</message>
  <tree>8b7106fd9f2dc730cb22202504ff1d1218983db0</tree>
  <committer>
    <name>Christian Neukirchen</name>
    <email>chneukirchen@gmail.com</email>
  </committer>
</commit>
