haml 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of haml might be problematic. Click here for more details.

data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
data/lib/haml/engine.rb CHANGED
@@ -158,7 +158,7 @@ module Haml
158
158
  line = line.strip
159
159
 
160
160
  if old_line
161
- block_opened = tabs > old_tabs
161
+ block_opened = tabs > old_tabs && !line.empty?
162
162
 
163
163
  suppress_render = handle_multiline(old_tabs, old_line, old_index)
164
164
 
@@ -8,6 +8,7 @@
8
8
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
9
9
  <strong apos="Foo's bar!">Boo!</strong>
10
10
  <div class='render'><em>wow!</em></div>
11
+ stuff followed by whitespace
11
12
  <p>
12
13
  Escape
13
14
  - character
@@ -8,6 +8,8 @@
8
8
  !!! FRAMESET
9
9
  %strong{:apos => "Foo's bar!"} Boo!
10
10
  .render= render :inline => "%em= 'wow!'", :type => :haml
11
+ = "stuff followed by whitespace"
12
+
11
13
  %p
12
14
  \Escape
13
15
  \- character
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: haml
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.0
7
- date: 2006-12-17 00:00:00 -08:00
6
+ version: 1.0.1
7
+ date: 2006-12-26 00:00:00 -08:00
8
8
  summary: An elegant, structured XHTML/XML templating engine.
9
9
  require_paths:
10
10
  - lib
@@ -61,19 +61,19 @@ files:
61
61
  - test/results/helpers.xhtml
62
62
  - test/rhtml/standard.rhtml
63
63
  - test/mocks/article.rb
64
+ - test/templates/whitespace_handling.haml
65
+ - test/templates/eval_suppressed.haml
64
66
  - test/templates/standard.haml
65
67
  - test/templates/helpful.haml
66
- - test/templates/whitespace_handling.haml
67
68
  - test/templates/helpers.haml
69
+ - test/templates/silent_script.haml
68
70
  - test/templates/partialize.haml
69
- - test/templates/eval_suppressed.haml
70
- - test/templates/list.haml
71
71
  - test/templates/_text_area.haml
72
- - test/templates/content_for_layout.haml
72
+ - test/templates/list.haml
73
73
  - test/templates/partials.haml
74
- - test/templates/silent_script.haml
75
- - test/templates/very_basic.haml
74
+ - test/templates/content_for_layout.haml
76
75
  - test/templates/original_engine.haml
76
+ - test/templates/very_basic.haml
77
77
  - test/templates/_partial.haml
78
78
  - test/templates/just_stuff.haml
79
79
  - test/templates/tag_parsing.haml