Permalink
Browse files

Warn on empty links

  • Loading branch information...
1 parent 5e5eece commit b5f4f1d087434c42d0f74e16ed89da3e35e011a7 @chneukirchen committed Oct 10, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 trivium.rb
View
@@ -62,6 +62,7 @@ def to_html
case name
when "link"
title, desc = body.split("|", 2)
+ warn "forgot link: #{title.strip}" if args.strip.empty?
%{<p class="link"><span><a href="#{CGI.escapeHTML(args.strip)}">#{
title.strip}</a>#{SpanBlueCloth.new(desc.to_s).to_html}</span></p>}
when "quote"

0 comments on commit b5f4f1d

Please sign in to comment.