summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2008-09-21 18:54:13 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2008-09-21 18:54:13 +0200
commit6a0066e733c88348e61376052dab66956a6f1275 (patch)
tree723060ec8eb7fb32ed2a9b88447ab54cbe673984
parentb68840aa2396103e26e03c1046136a526399e824 (diff)
downloadtrivium-6a0066e733c88348e61376052dab66956a6f1275.tar.gz
trivium-6a0066e733c88348e61376052dab66956a6f1275.tar.xz
trivium-6a0066e733c88348e61376052dab66956a6f1275.zip
Allow links without description
-rw-r--r--trivium.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/trivium.rb b/trivium.rb
index b8e3e37..933f853 100644
--- a/trivium.rb
+++ b/trivium.rb
@@ -63,7 +63,7 @@ class Dots < String
       when "link"
         title, desc = body.split("|", 2)
         %{<p class="link"><span><a href="#{args.strip}">#{title.strip}</a>#{
-          SpanBlueCloth.new(desc).to_html}</span></p>}
+          SpanBlueCloth.new(desc.to_s).to_html}</span></p>}
       when "quote"
         if args.strip.empty?
           src = ""