repo.or.cz
/
git-blog.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Only require parsers when they're needed
[git-blog.git]
/
lib
/
git-blog
/
parsers.rb
blob
1e84c83d3e0274f7ea9a94067f897ca0feae30c3
1
module GitBlog
2
module Parsers
3
def self.fix_pres string
4
string.gsub %r!([ \t]*)<pre>(.*?)</pre>!m do |match|
5
match.gsub(/^#{$1}/, '')
6
end
7
end
8
end
9
end