mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Conditional comments should allow periods.
git-svn-id: svn://hamptoncatlin.com/haml/branches/edge@168 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
1082ac7a65
commit
2381911347
1 changed files with 1 additions and 1 deletions
|
@ -484,7 +484,7 @@ module Haml
|
|||
|
||||
# Renders an XHTML comment.
|
||||
def render_comment(line)
|
||||
conditional, content = line.scan(/\/(\[[a-zA-Z0-9 ]*\])?(.*)/)[0]
|
||||
conditional, content = line.scan(/\/(\[[a-zA-Z0-9 \.]*\])?(.*)/)[0]
|
||||
content = content.strip
|
||||
try_one_line = !content.empty?
|
||||
push_silent "_hamlout.open_comment(#{try_one_line}, #{conditional.inspect}, #{@output_tabs})"
|
||||
|
|
Loading…
Add table
Reference in a new issue