Permalink
Browse files

Updates to taskpaper handler

  • Loading branch information...
1 parent e756a6f commit 8fb40ced85fac463a164c44fd55597411213b48b @ttscoff committed Apr 11, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 tp2md.rb
View
@@ -16,7 +16,7 @@
output += "\n## #{project} ##\n\n"
prevlevel = 0
else
- output += "#{tabs.gsub(/^\t/,'')}* **#{project}**\n"
+ output += "#{tabs.gsub(/^\t/,"")}* **#{project.gsub(/^\s*-\s*/,'')}**\n"
prevlevel = tabs.length
end
elsif line =~ /^(\t+)?\- (.*)$/
@@ -34,7 +34,7 @@
next if line =~ /^\s*$/
tabs = ""
prevlevel-1.times {|i| tabs += "\t"}
- output += "#{tabs}> #{line.strip}\n\n"
+ output += "\n#{tabs}*#{line.strip}*\n"
end
}
rescue => err

0 comments on commit 8fb40ce

Please sign in to comment.