Sign in
apache
/
wicket-site
/
78df6ea1422e376e56c1351106c9c3cdf6cc2cd8
/
.
/
_plugins
/
strip.rb
blob: bb8c88ae7207924e221811ead3a9494fd477ce6d [
file
] [
log
] [
blame
]
# Replaces multiple newlines and whitespace
# between them with one newline
module
Jekyll
class
StripTag
<
Liquid
::
Block
def
render
(
context
)
super
.
gsub
/
\n\s
*
\n
/,
"\n"
end
end
end
Liquid
::
Template
.
register_tag
(
'strip'
,
Jekyll
::
StripTag
)