diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2008-10-10 22:04:51 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2008-10-10 22:04:51 +0200 |
commit | b5f4f1d087434c42d0f74e16ed89da3e35e011a7 (patch) | |
tree | 358ec63e66968e6345a293ef7d9f0219b429107e | |
parent | 5e5eece65ccb0f844a6f939aa81ed502d076a13c (diff) | |
download | trivium-b5f4f1d087434c42d0f74e16ed89da3e35e011a7.tar.gz trivium-b5f4f1d087434c42d0f74e16ed89da3e35e011a7.tar.xz trivium-b5f4f1d087434c42d0f74e16ed89da3e35e011a7.zip |
Warn on empty links
-rw-r--r-- | trivium.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/trivium.rb b/trivium.rb index 5d119f3..f233cc7 100644 --- a/trivium.rb +++ b/trivium.rb @@ -62,6 +62,7 @@ class Dots < String 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" |