<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>the tar pit &#187; css</title>
	<atom:link href="http://blog.goneopen.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.goneopen.com</link>
	<description>Thrashing around in the stickiness of software</description>
	<lastBuildDate>Wed, 25 Aug 2010 10:10:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Update to Hemingway theme for textile</title>
		<link>http://blog.goneopen.com/2008/11/update-to-hemingway-theme-for-textile/</link>
		<comments>http://blog.goneopen.com/2008/11/update-to-hemingway-theme-for-textile/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 17:24:25 +0000</pubDate>
		<dc:creator>todd</dc:creator>
				<category><![CDATA[classTextile]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[textile]]></category>

		<guid isPermaLink="false">http://blog.goneopen.com/2008/11/update-to-hemingway-theme-for-textile/</guid>
		<description><![CDATA[Now that I am uploading my blog directly, I actually needed textile installed. See Textile plugin for WordPress. However, the code didn&#8217;t look that good with my Hemingway skin. Here is the snippet from the css to make the code look better. pre{ width:95%; padding:1em 0; overflow:auto; color: #444444; font-family:'Bitstream Vera Sans Mono','Courier',monospace; font-size:105%; background-color:#F8F8F8; [...]]]></description>
			<content:encoded><![CDATA[<p>Now that I am uploading my blog directly, I actually needed textile installed. See <a href="http://huddledmasses.org/wordpress-plugin-textile-20/">Textile plugin</a> for WordPress. However, the code didn&#8217;t look that good with my Hemingway skin. Here is the snippet from the css to make the code look better.</p>



<pre>pre{
  width:95%;
  padding:1em 0;
  overflow:auto;
  color: #444444;
  font-family:'Bitstream Vera Sans Mono','Courier',monospace;
  font-size:105%;
  background-color:#F8F8F8;
  margin-top:0.3em;
  padding:1.2em 0.7em 1.7em 0.7em;
  border:1px solid #E9E9E9;
}

pre &gt; p{
  width:95%;
  padding:1em 0;
  overflow:auto;
  color: #444444;
  font-family:'Bitstream Vera Sans Mono','Courier',monospace;
  font-size:105%;
  background-color:#F8F8F8;
  margin-top: -1.5em;
  margin-bottom: -1.5em;
  line-height: 1.2em;
}
</pre>



<p>Also I had to patch the code to get lists to work correctly. I went back to the original <a href="http://textpattern.googlecode.com/svn/development/4.0/textpattern/lib/classTextile.php" title="classTextile.php"><span class="caps">SVN </span>code</a> (however, I could not take the entire file so I just took the <code>list</code> code). Here it is (sorry it&#8217;s not a diff file):</p>



<pre>// -------------------------------------------------------------
function lists($text)
{
  return preg_replace_callback(&quot;/^([#*]+$this-&gt;c .*)$(?![^#*])/smU&quot;, array(&amp;$this, &quot;fList&quot;), $text);
}

// -------------------------------------------------------------
function fList($m)
{
  $text = preg_split('/\n(?=[*#])/m', $m[0]);
  foreach($text as $nr =&gt; $line) {
    $nextline = isset($text[$nr+1]) ? $text[$nr+1] : false;
    if (preg_match(&quot;/^([#*]+)($this-&gt;a$this-&gt;c) (.*)$/s&quot;, $line, $m)) {
      list(, $tl, $atts, $content) = $m;
      $nl = '';
      if (preg_match(&quot;/^([#*]+)\s.*/&quot;, $nextline, $nm))
        $nl = $nm[1];
      if (!isset($lists[$tl])) {
        $lists[$tl] = true;
        $atts = $this-&gt;pba($atts);
        $line = &quot;\t&lt;&quot; . $this-&gt;lT($tl) . &quot;l$atts&gt;\n\t\t&lt;li&gt;&quot; . rtrim($content);
      } else {
        $line = &quot;\t\t&lt;li&gt;&quot; . rtrim($content);
      }

      if(strlen($nl) &lt;= strlen($tl)) $line .= &quot;&lt;/li&gt;&quot;;
      foreach(array_reverse($lists) as $k =&gt; $v) {
        if(strlen($k) &gt; strlen($nl)) {
          $line .= &quot;\n\t&lt;/&quot; . $this-&gt;lT($k) . &quot;l&gt;&quot;;
          if(strlen($k) &gt; 1)
            $line .= &quot;&lt;/li&gt;&quot;;
          unset($lists[$k]);
        }
      }
    }
    else {
      $line .= &quot;\n&quot;;
    }
    $out[] = $line;
  }
  return $this-&gt;doTagBr('li', join(&quot;\n&quot;, $out));
}
</pre>



<p>Jobs still to be done on this code. I don&#8217;t think it deals with the <code>&lt;pre&gt;</code> tag correctly. It doesn&#8217;t escape <span class="caps">HTML </span>code and it inserts <code>&lt;p&gt;</code> and <code>&lt;br/&gt;</code> tags. I think that preformattted text should just be left alone! It maybe in the latest release that I have patched across. That&#8217;s another days work.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.goneopen.com/2008/11/update-to-hemingway-theme-for-textile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update to Hemingway theme for textile</title>
		<link>http://blog.goneopen.com/2008/11/update-to-hemingway-theme-for-textile-2/</link>
		<comments>http://blog.goneopen.com/2008/11/update-to-hemingway-theme-for-textile-2/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 17:24:25 +0000</pubDate>
		<dc:creator>todd</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[classTextile]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[textile]]></category>

		<guid isPermaLink="false">http://blog.goneopen.com/2008/11/update-to-hemingway-theme-for-textile-2/</guid>
		<description><![CDATA[Now that I am uploading my blog directly, I actually needed textile installed. See Textile plugin for WordPress. However, the code didn&#8217;t look that good with my Hemingway skin. Here is the snippet from the css to make the code look better. pre{ width:95%; padding:1em 0; overflow:auto; color: #444444; font-family:'Bitstream Vera Sans Mono','Courier',monospace; font-size:105%; background-color:#F8F8F8; [...]]]></description>
			<content:encoded><![CDATA[<p>Now that I am uploading my blog directly, I actually needed textile installed. See <a href="http://huddledmasses.org/wordpress-plugin-textile-20/">Textile plugin</a> for WordPress. However, the code didn&#8217;t look that good with my Hemingway skin. Here is the snippet from the css to make the code look better.</p>



<pre>pre{
  width:95%;
  padding:1em 0;
  overflow:auto;
  color: #444444;
  font-family:'Bitstream Vera Sans Mono','Courier',monospace;
  font-size:105%;
  background-color:#F8F8F8;
  margin-top:0.3em;
  padding:1.2em 0.7em 1.7em 0.7em;
  border:1px solid #E9E9E9;
}

pre &gt; p{
  width:95%;
  padding:1em 0;
  overflow:auto;
  color: #444444;
  font-family:'Bitstream Vera Sans Mono','Courier',monospace;
  font-size:105%;
  background-color:#F8F8F8;
  margin-top: -1.5em;
  margin-bottom: -1.5em;
  line-height: 1.2em;
}
</pre>



<p>Also I had to patch the code to get lists to work correctly. I went back to the original <a href="http://textpattern.googlecode.com/svn/development/4.0/textpattern/lib/classTextile.php" title="classTextile.php"><span class="caps">SVN </span>code</a> (however, I could not take the entire file so I just took the <code>list</code> code). Here it is (sorry it&#8217;s not a diff file):</p>



<pre>// -------------------------------------------------------------
function lists($text)
{
  return preg_replace_callback(&quot;/^([#*]+$this-&gt;c .*)$(?![^#*])/smU&quot;, array(&amp;$this, &quot;fList&quot;), $text);
}

// -------------------------------------------------------------
function fList($m)
{
  $text = preg_split('/\n(?=[*#])/m', $m[0]);
  foreach($text as $nr =&gt; $line) {
    $nextline = isset($text[$nr+1]) ? $text[$nr+1] : false;
    if (preg_match(&quot;/^([#*]+)($this-&gt;a$this-&gt;c) (.*)$/s&quot;, $line, $m)) {
      list(, $tl, $atts, $content) = $m;
      $nl = '';
      if (preg_match(&quot;/^([#*]+)\s.*/&quot;, $nextline, $nm))
        $nl = $nm[1];
      if (!isset($lists[$tl])) {
        $lists[$tl] = true;
        $atts = $this-&gt;pba($atts);
        $line = &quot;\t&lt;&quot; . $this-&gt;lT($tl) . &quot;l$atts&gt;\n\t\t&lt;li&gt;&quot; . rtrim($content);
      } else {
        $line = &quot;\t\t&lt;li&gt;&quot; . rtrim($content);
      }

      if(strlen($nl) &lt;= strlen($tl)) $line .= &quot;&lt;/li&gt;&quot;;
      foreach(array_reverse($lists) as $k =&gt; $v) {
        if(strlen($k) &gt; strlen($nl)) {
          $line .= &quot;\n\t&lt;/&quot; . $this-&gt;lT($k) . &quot;l&gt;&quot;;
          if(strlen($k) &gt; 1)
            $line .= &quot;&lt;/li&gt;&quot;;
          unset($lists[$k]);
        }
      }
    }
    else {
      $line .= &quot;\n&quot;;
    }
    $out[] = $line;
  }
  return $this-&gt;doTagBr('li', join(&quot;\n&quot;, $out));
}
</pre>



<p>Jobs still to be done on this code. I don&#8217;t think it deals with the <code>&lt;pre&gt;</code> tag correctly. It doesn&#8217;t escape <span class="caps">HTML </span>code and it inserts <code>&lt;p&gt;</code> and <code>&lt;br/&gt;</code> tags. I think that preformattted text should just be left alone! It maybe in the latest release that I have patched across. That&#8217;s another days work.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.goneopen.com/2008/11/update-to-hemingway-theme-for-textile-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
