inky-rb 1.3.8.0 → 1.4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/inky.gemspec +5 -5
  3. data/lib/inky/component_factory.rb +15 -8
  4. data/lib/inky/rails/version.rb +1 -1
  5. data/lib/inky.rb +3 -1
  6. data/spec/_cases_output/button/no_link.inky +1 -1
  7. data/spec/_cases_output/button/with_expand_class.inky +3 -3
  8. data/spec/_cases_output/button/with_extra_attr.inky +3 -0
  9. data/spec/_cases_output/button/with_image.inky +2 -2
  10. data/spec/_cases_output/button/with_link.inky +2 -2
  11. data/spec/_cases_output/button/with_link_and_extra_attr.inky +3 -0
  12. data/spec/_cases_output/button/with_tricky_class.inky +13 -13
  13. data/spec/_cases_output/callout/basic.inky +1 -1
  14. data/spec/_cases_output/callout/with_attributes.inky +2 -2
  15. data/spec/_cases_output/general/multiple_root.inky +2 -2
  16. data/spec/_cases_output/general/root_within_text.inky +5 -1
  17. data/spec/_cases_output/general/void_html_elements.inky +2 -2
  18. data/spec/_cases_output/grid/columns.inky +2 -2
  19. data/spec/_cases_output/grid/row_with_columns.inky +3 -3
  20. data/spec/_cases_output/h_line/basic.inky +1 -0
  21. data/spec/_cases_output/h_line/h_line.inky +2 -0
  22. data/spec/_cases_output/h_line/multiple.inky +3 -0
  23. data/spec/_cases_output/h_line/with_attr.inky +1 -0
  24. data/spec/_cases_output/menu/menu.inky +2 -2
  25. data/spec/_cases_output/menu/menu_with_align.inky +2 -2
  26. data/spec/_cases_output/menu/menu_with_items.inky +2 -2
  27. data/spec/_cases_output/spacer/basic.inky +1 -1
  28. data/spec/_cases_output/spacer/with_attr.inky +6 -0
  29. data/spec/_cases_output/spacer/with_size.inky +1 -1
  30. data/spec/_cases_output/spacer/with_size_lg.inky +1 -1
  31. data/spec/_cases_output/spacer/with_size_sm.inky +1 -1
  32. data/spec/_cases_output/spacer/with_size_sm_and_lg.inky +1 -1
  33. data/spec/_cases_output/spacer/with_sizes_and_attr.inky +6 -0
  34. data/spec/_cases_output/wrapper/basic.inky +1 -1
  35. data/spec/_cases_output/wrapper/with_align.inky +1 -1
  36. data/spec/_cases_output/wrapper/with_attributes.inky +1 -1
  37. data/spec/cases/button/with_extra_attr.inky +3 -0
  38. data/spec/cases/button/with_link.inky +1 -1
  39. data/spec/cases/button/with_link_and_extra_attr.inky +3 -0
  40. data/spec/cases/h_line/basic.inky +1 -0
  41. data/spec/cases/h_line/multiple.inky +8 -0
  42. data/spec/cases/h_line/with_attr.inky +2 -0
  43. data/spec/cases/spacer/with_attr.inky +6 -0
  44. data/spec/cases/spacer/with_size.inky +1 -1
  45. data/spec/cases/spacer/with_size_lg.inky +1 -1
  46. data/spec/cases/spacer/with_size_sm.inky +1 -1
  47. data/spec/cases/spacer/with_size_sm_and_lg.inky +1 -1
  48. data/spec/cases/spacer/with_sizes_and_attr.inky +6 -0
  49. data/spec/components_spec.rb +48 -48
  50. data/spec/grid_spec.rb +38 -38
  51. data/spec/spec_helper.rb +0 -1
  52. data/spec/test_app/log/test.log +663 -0
  53. data/spec/test_app/spec/features/inky_spec.rb +3 -3
  54. metadata +130 -102
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48af980ab18545c232dc3fd4f4ee2ebedbfeca066aabe1faa4c3455c2aa4c152
4
- data.tar.gz: f0b985c040dea524b0004cc90edb81ce8f4920e135d9def3253896a38b75099c
3
+ metadata.gz: 8b6292d929c4b925c5767a682f808c6f7f812925fe8769604e266459b19f0afb
4
+ data.tar.gz: 46349b5e9e7901e374e99d51f9bfbcaa1d083550336917629ea434c452ce4c99
5
5
  SHA512:
6
- metadata.gz: 3de872ab2036bd2ffcfb7c6c13aa8a58aee0b208e89da68281547e60a61acc8eaaf7b7f587d08d9672b6c84ad18219e61d7c227a71d47b3a6396c59ebb9dd840
7
- data.tar.gz: f278877cc37ddf979b7f68fb35d3f333881095203eb40a95b330e217c28cc9708ba658a5466fcb2b171ace3ffd83b60270ec64b781d6a9b6ccdd64a37d728223
6
+ metadata.gz: d7c9410bd6ff9a642ccd5c51d8435a077234334c6dcfe23054f72bd6dc330a2cd4d07cd02bd2084dc0f65bed18ba08d82b904d5b08ced59e23b0f553b3daf22e
7
+ data.tar.gz: 1479e4b652d006b7a37092a05ee72d1177e0ab97ea514f0eb646acc25900da9799f887176cee1bef2f9527ebd13936d208ed5818bad3a44fee0b88da1ebbfcf5
data/inky.gemspec CHANGED
@@ -5,11 +5,11 @@ require 'inky/rails/version'
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'inky-rb'
7
7
  s.version = Inky::Rails::VERSION
8
- s.summary = 'Inky is an HTML-based templating language that converts simple HTML into complex, responsive email-ready HTML. Designed for Foundation for Emails, a responsive email framework from ZURB. '
9
- s.description = 'Inky is an HTML-based templating language that converts simple HTML into complex, responsive email-ready HTML. Designed for Foundation for Emails, a responsive email framework from ZURB. '
10
- s.authors = ["ZURB"]
11
- s.email = ['foundation@zurb.com']
12
- s.homepage = 'https://github.com/zurb/inky-rb'
8
+ s.summary = 'Inky is an HTML-based templating language that converts simple HTML into complex, responsive email-ready HTML. Designed for Foundation for Emails'
9
+ s.description = 'Inky is an HTML-based templating language that converts simple HTML into complex, responsive email-ready HTML. Designed for Foundation for Emails'
10
+ s.authors = ["Foundation"]
11
+ s.email = ['contact@get.foundation']
12
+ s.homepage = 'https://github.com/foundation/inky-rb'
13
13
  s.licenses = ['MIT']
14
14
 
15
15
  s.files = `git ls-files -z`.split("\x0")
@@ -45,21 +45,22 @@ module Inky
45
45
 
46
46
  def _transform_button(component, inner)
47
47
  expand = _has_class(component, 'expand')
48
+ attributes = _pass_through_attributes(component)
48
49
  if component.attr('href')
49
50
  target = _target_attribute(component)
50
51
  extra = ' align="center" class="float-center"' if expand
51
- inner = %{<a href="#{component.attr('href')}"#{target}#{extra}>#{inner}</a>}
52
+ inner = %{<a #{attributes}href="#{component.attr('href')}"#{target}#{extra}>#{inner}</a>}
52
53
  end
53
54
  inner = "<center>#{inner}</center>" if expand
54
55
 
55
56
  classes = _combine_classes(component, 'button')
56
57
  expander = '<td class="expander"></td>' if expand
57
- %{<table class="#{classes}"><tr><td><table><tr><td>#{inner}</td></tr></table></td>#{expander}</tr></table>}
58
+ %{<table class="#{classes}"><tbody><tr><td><table><tbody><tr><td>#{inner}</td></tr></tbody></table></td>#{expander}</tr></tbody></table>}
58
59
  end
59
60
 
60
61
  def _transform_menu(component, inner)
61
62
  attributes = _combine_attributes(component, 'menu')
62
- %{<table #{attributes}><tr><td><table><tr>#{inner}</tr></table></td></tr></table>}
63
+ %{<table #{attributes}><tbody><tr><td><table><tbody><tr>#{inner}</tr></tbody></table></td></tr></tbody></table>}
63
64
  end
64
65
 
65
66
  def _transform_menu_item(component, inner)
@@ -96,12 +97,12 @@ module Inky
96
97
  subrows = component.elements.css(".row").to_a.concat(component.elements.css("row").to_a)
97
98
  expander = %{<th class="expander"></th>} if large_size.to_i == column_count && subrows.empty?
98
99
 
99
- %{<#{INTERIM_TH_TAG} class="#{classes}" #{_pass_through_attributes(component)}><table><tr><th>#{inner}</th>#{expander}</tr></table></#{INTERIM_TH_TAG}>}
100
+ %{<#{INTERIM_TH_TAG} class="#{classes}" #{_pass_through_attributes(component)}><table><tbody><tr><th>#{inner}</th>#{expander}</tr></tbody></table></#{INTERIM_TH_TAG}>}
100
101
  end
101
102
 
102
103
  def _transform_block_grid(component, inner)
103
104
  classes = _combine_classes(component, "block-grid up-#{component.attr('up')}")
104
- %{<table class="#{classes}"><tr>#{inner}</tr></table>}
105
+ %{<table class="#{classes}"><tbody><tr>#{inner}</tr></tbody></table>}
105
106
  end
106
107
 
107
108
  def _transform_center(component, _inner)
@@ -121,12 +122,12 @@ module Inky
121
122
  def _transform_callout(component, inner)
122
123
  classes = _combine_classes(component, 'callout-inner')
123
124
  attributes = _pass_through_attributes(component)
124
- %{<table #{attributes}class="callout"><tr><th class="#{classes}">#{inner}</th><th class="expander"></th></tr></table>}
125
+ %{<table #{attributes}class="callout"><tbody><tr><th class="#{classes}">#{inner}</th><th class="expander"></th></tr></tbody></table>}
125
126
  end
126
127
 
127
128
  def _transform_spacer(component, _inner)
128
129
  classes = _combine_classes(component, 'spacer')
129
- build_table = ->(size, extra) { %{<table class="#{classes} #{extra}"><tbody><tr><td height="#{size}" style="font-size:#{size}px;line-height:#{size}px;">&#xA0;</td></tr></tbody></table>} }
130
+ build_table = ->(size, extra) { %{<table class="#{classes} #{extra}"><tbody><tr><td height="#{size}" style="font-size:#{size}px;line-height:#{size}px;">&nbsp;</td></tr></tbody></table>} }
130
131
  size = component.attr('size')
131
132
  size_sm = component.attr('size-sm')
132
133
  size_lg = component.attr('size-lg')
@@ -140,9 +141,15 @@ module Inky
140
141
  end
141
142
  end
142
143
 
144
+ def _transform_h_line(component, _inner)
145
+ classes = _combine_classes(component, 'h-line')
146
+ attributes = _pass_through_attributes(component)
147
+ %{<table #{attributes}class="#{classes}"><tr><th>&nbsp;</th></tr></table>}
148
+ end
149
+
143
150
  def _transform_wrapper(component, inner)
144
151
  attributes = _combine_attributes(component, 'wrapper')
145
- %{<table #{attributes} align="center"><tr><td class="wrapper-inner">#{inner}</td></tr></table>}
152
+ %{<table #{attributes} align="center"><tbody><tr><td class="wrapper-inner">#{inner}</td></tr></tbody></table>}
146
153
  end
147
154
  end
148
155
  end
@@ -1,6 +1,6 @@
1
1
  module Inky
2
2
  module Rails
3
- VERSION = '1.3.8.0'.freeze
3
+ VERSION = '1.4.2.0'.freeze
4
4
  end
5
5
  NODE_VERSION, GEM_VERSION = Rails::VERSION.rpartition('.').map(&:freeze)
6
6
  end
data/lib/inky.rb CHANGED
@@ -20,7 +20,8 @@ module Inky
20
20
  callout: 'callout',
21
21
  spacer: 'spacer',
22
22
  wrapper: 'wrapper',
23
- menu_item: 'item'
23
+ menu_item: 'item',
24
+ h_line: 'h-line',
24
25
  }.merge(::Inky.configuration.components).merge(options[:components] || {})
25
26
 
26
27
  self.component_lookup = components.invert
@@ -41,6 +42,7 @@ module Inky
41
42
  transform_doc(html)
42
43
  string = html.to_html
43
44
  string.gsub!(INTERIM_TH_TAG_REGEX, 'th')
45
+ string.gsub!(' ', '&nbsp;') # Convert non-breaking spaces to explicit &nbsp; entity
44
46
  Inky::Core.re_inject_raws(string, raws)
45
47
  end
46
48
 
@@ -1 +1 @@
1
- <table class="button"><tr><td><table><tr><td>I'm missing an href</td></tr></table></td></tr></table>
1
+ <table class="button"><tbody><tr><td><table><tbody><tr><td>I'm missing an href</td></tr></tbody></table></td></tr></tbody></table>
@@ -1,4 +1,4 @@
1
- <table class="button expand foo"><tr><td><table><tr><td><center data-parsed=""><a href="http://example.com" align="center" class="float-center">
1
+ <table class="button expand foo"><tbody><tr><td><table><tbody><tr><td><center><a href="http://example.com" align="center" class="float-center">
2
2
  A label
3
- </a></center></td></tr></table></td>
4
- <td class="expander"></td></tr></table>
3
+ </a></center></td></tr></tbody></table></td>
4
+ <td class="expander"></td></tr></tbody></table>
@@ -0,0 +1,3 @@
1
+ <table class="button"><tbody><tr><td><table><tbody><tr><td>
2
+ A label
3
+ </td></tr></tbody></table></td></tr></tbody></table>
@@ -1,3 +1,3 @@
1
- <table class="button"><tr><td><table><tr><td><a href="#">
1
+ <table class="button"><tbody><tr><td><table><tbody><tr><td><a href="#">
2
2
  <img src="http://www.example.com/" width="600" height="400">
3
- </a></td></tr></table></td></tr></table>
3
+ </a></td></tr></tbody></table></td></tr></tbody></table>
@@ -1,3 +1,3 @@
1
- <table class="button some classes"><tr><td><table><tr><td><a href="http://example.com">
1
+ <table class="button some classes"><tbody><tr><td><table><tbody><tr><td><a href="http://example.com">
2
2
  A label
3
- </a></td></tr></table></td></tr></table>
3
+ </a></td></tr></tbody></table></td></tr></tbody></table>
@@ -0,0 +1,3 @@
1
+ <table class="button"><tbody><tr><td><table><tbody><tr><td><a foo="bar" href="http://example.com">
2
+ A label
3
+ </a></td></tr></tbody></table></td></tr></tbody></table>
@@ -1,22 +1,22 @@
1
- <table class="button noexpand"><tr><td><table><tr><td><a href="http://example.com">
1
+ <table class="button noexpand"><tbody><tr><td><table><tbody><tr><td><a href="http://example.com">
2
2
  A label
3
- </a></td></tr></table></td></tr></table>
3
+ </a></td></tr></tbody></table></td></tr></tbody></table>
4
4
 
5
- <table class="button expand-niet"><tr><td><table><tr><td><a href="http://example.com">
5
+ <table class="button expand-niet"><tbody><tr><td><table><tbody><tr><td><a href="http://example.com">
6
6
  A label
7
- </a></td></tr></table></td></tr></table>
7
+ </a></td></tr></tbody></table></td></tr></tbody></table>
8
8
 
9
- <table class="button expand foo"><tr><td><table><tr><td><center data-parsed=""><a href="http://example.com" align="center" class="float-center">
9
+ <table class="button expand foo"><tbody><tr><td><table><tbody><tr><td><center><a href="http://example.com" align="center" class="float-center">
10
10
  A label
11
- </a></center></td></tr></table></td>
12
- <td class="expander"></td></tr></table>
11
+ </a></center></td></tr></tbody></table></td>
12
+ <td class="expander"></td></tr></tbody></table>
13
13
 
14
- <table class="button foo expand"><tr><td><table><tr><td><center data-parsed=""><a href="http://example.com" align="center" class="float-center">
14
+ <table class="button foo expand"><tbody><tr><td><table><tbody><tr><td><center><a href="http://example.com" align="center" class="float-center">
15
15
  A label
16
- </a></center></td></tr></table></td>
17
- <td class="expander"></td></tr></table>
16
+ </a></center></td></tr></tbody></table></td>
17
+ <td class="expander"></td></tr></tbody></table>
18
18
 
19
- <table class="button foo expand bar"><tr><td><table><tr><td><center data-parsed=""><a href="http://example.com" align="center" class="float-center">
19
+ <table class="button foo expand bar"><tbody><tr><td><table><tbody><tr><td><center><a href="http://example.com" align="center" class="float-center">
20
20
  A label
21
- </a></center></td></tr></table></td>
22
- <td class="expander"></td></tr></table>
21
+ </a></center></td></tr></tbody></table></td>
22
+ <td class="expander"></td></tr></tbody></table>
@@ -1 +1 @@
1
- <table class="callout"><tr><th class="callout-inner">Simple callout</th><th class="expander"></th></tr></table>
1
+ <table class="callout"><tbody><tr><th class="callout-inner">Simple callout</th><th class="expander"></th></tr></tbody></table>
@@ -1,3 +1,3 @@
1
- <table foo="bar" class="callout"><tr><th class="callout-inner some klasses">
1
+ <table foo="bar" class="callout"><tbody><tr><th class="callout-inner some klasses">
2
2
  <p>I'm in a callout!</p>
3
- </th><th class="expander"></th></tr></table>
3
+ </th><th class="expander"></th></tr></tbody></table>
@@ -1,2 +1,2 @@
1
- <table class="callout"><tr><th class="callout-inner">Hey</th><th class="expander"></th></tr></table>
2
- <table class="callout"><tr><th class="callout-inner">You</th><th class="expander"></th></tr></table>
1
+ <table class="callout"><tbody><tr><th class="callout-inner">Hey</th><th class="expander"></th></tr></tbody></table>
2
+ <table class="callout"><tbody><tr><th class="callout-inner">You</th><th class="expander"></th></tr></tbody></table>
@@ -1,3 +1,7 @@
1
1
  Text before
2
- <table class="callout"><tr><th class="callout-inner">Ho</th><th class="expander"></th></tr></table>
2
+ <table class="callout"><tbody><tr><th class="callout-inner">Ho</th><th class="expander"></th></tr></tbody></table>
3
+ Text after
4
+ <table class="callout"><tbody><tr><th class="callout-inner">Ho</th><th class="expander"></th></tr></tbody></table>
5
+ Text after
6
+ <table class="callout"><tbody><tr><th class="callout-inner">Ho</th><th class="expander"></th></tr></tbody></table>
3
7
  Text after
@@ -1,6 +1,6 @@
1
- <table class="callout"><tr><th class="callout-inner">
1
+ <table class="callout"><tbody><tr><th class="callout-inner">
2
2
  Hello
3
3
  <br>
4
4
  Here's an image:
5
5
  <img src="http://www.example.com" width="400" height="200">
6
- </th><th class="expander"></th></tr></table>
6
+ </th><th class="expander"></th></tr></tbody></table>
@@ -1,2 +1,2 @@
1
- <th class="some classes small-12 large-12 columns first last" foo="bar"><table><tr><th>First column</th>
2
- <th class="expander"></th></tr></table></th>
1
+ <th class="some classes small-12 large-12 columns first last" foo="bar"><table><tbody><tr><th>First column</th>
2
+ <th class="expander"></th></tr></tbody></table></th>
@@ -1,5 +1,5 @@
1
1
  <table class="row collapse"><tbody><tr>
2
- <th class="small-12 large-4 columns first"><table><tr><th>First column</th></tr></table></th>
3
- <th class="small-12 large-4 columns"><table><tr><th>Second column</th></tr></table></th>
4
- <th class="small-12 large-4 columns last"><table><tr><th>Last column</th></tr></table></th>
2
+ <th class="small-12 large-4 columns first"><table><tbody><tr><th>First column</th></tr></tbody></table></th>
3
+ <th class="small-12 large-4 columns"><table><tbody><tr><th>Second column</th></tr></tbody></table></th>
4
+ <th class="small-12 large-4 columns last"><table><tbody><tr><th>Last column</th></tr></tbody></table></th>
5
5
  </tr></tbody></table>
@@ -0,0 +1 @@
1
+ <table class="h-line"><tr><th>&nbsp;</th></tr></table>
@@ -0,0 +1,2 @@
1
+ Hello
2
+ <table class="h-line"><tr><th>&nbsp;</th></tr></table>
@@ -0,0 +1,3 @@
1
+ <!-- pending https://github.com/foundation/inky/issues/137 --->
2
+ Hello
3
+ <table class="h-line"><tr><th>&nbsp;</th></tr></table>
@@ -0,0 +1 @@
1
+ <table class="h-line"><tr><th>&nbsp;</th></tr></table>
@@ -1,2 +1,2 @@
1
- <table foo="bar" class="menu some classes"><tr><td><table><tr>
2
- </tr></table></td></tr></table>
1
+ <table foo="bar" class="menu some classes"><tbody><tr><td><table><tbody><tr>
2
+ </tr></tbody></table></td></tr></tbody></table>
@@ -1,2 +1,2 @@
1
- <table align="left" class="menu"><tr><td><table><tr>
2
- </tr></table></td></tr></table>
1
+ <table align="left" class="menu"><tbody><tr><td><table><tbody><tr>
2
+ </tr></tbody></table></td></tr></tbody></table>
@@ -1,5 +1,5 @@
1
- <table class="menu small-vertical"><tr><td><table><tr>
1
+ <table class="menu small-vertical"><tbody><tr><td><table><tbody><tr>
2
2
  <th class="menu-item"><a href="http://example.com/1">An item</a></th>
3
3
  <th class="menu-item"><a href="http://example.com/2">Another Item</a></th>
4
4
  <th class="menu-item"><a href="http://example.com/3">Last Item</a></th>
5
- </tr></table></td></tr></table>
5
+ </tr></tbody></table></td></tr></tbody></table>
@@ -1,5 +1,5 @@
1
1
  <div>
2
2
  Stuff on top
3
- <table class="spacer"><tbody><tr><td height="16px" style="font-size:16px;line-height:16px;">&#xA0;</td></tr></tbody></table>
3
+ <table class="spacer"><tbody><tr><td height="16" style="font-size:16px;line-height:16px;">&nbsp;</td></tr></tbody></table>
4
4
  Stuff on bottom
5
5
  </div>
@@ -0,0 +1,6 @@
1
+ <!-- pending https://github.com/foundation/inky/issues/135 --->
2
+ <div>
3
+ Stuff on top
4
+ <table foo="bar" class="spacer"><tbody><tr><td height="16" style="font-size:16px;line-height:16px;">&nbsp;</td></tr></tbody></table>
5
+ Stuff on bottom
6
+ </div>
@@ -1,5 +1,5 @@
1
1
  <div>
2
2
  Stuff on top
3
- <table class="spacer some classes"><tbody><tr><td height="42px" style="font-size:42px;line-height:42px;">&#xA0;</td></tr></tbody></table>
3
+ <table class="spacer some classes"><tbody><tr><td height="42" style="font-size:42px;line-height:42px;">&nbsp;</td></tr></tbody></table>
4
4
  Stuff on bottom
5
5
  </div>
@@ -1,5 +1,5 @@
1
1
  <div>
2
2
  Stuff on top
3
- <table class="spacer some classes show-for-large"><tbody><tr><td height="666px" style="font-size:666px;line-height:666px;">&#xA0;</td></tr></tbody></table>
3
+ <table class="spacer some classes show-for-large"><tbody><tr><td height="666" style="font-size:666px;line-height:666px;">&nbsp;</td></tr></tbody></table>
4
4
  <p>Stuff on bottom</p>
5
5
  </div>
@@ -1,5 +1,5 @@
1
1
  <div>
2
2
  Stuff on top
3
- <table class="spacer some classes hide-for-large"><tbody><tr><td height="42px" style="font-size:42px;line-height:42px;">&#xA0;</td></tr></tbody></table>
3
+ <table class="spacer some classes hide-for-large"><tbody><tr><td height="42" style="font-size:42px;line-height:42px;">&nbsp;</td></tr></tbody></table>
4
4
  Stuff on bottom
5
5
  </div>
@@ -1,5 +1,5 @@
1
1
  <div>
2
2
  Stuff on top
3
- <table class="spacer some classes hide-for-large"><tbody><tr><td height="42px" style="font-size:42px;line-height:42px;">&#xA0;</td></tr></tbody></table><table class="spacer some classes show-for-large"><tbody><tr><td height="666px" style="font-size:666px;line-height:666px;">&#xA0;</td></tr></tbody></table>
3
+ <table class="spacer some classes hide-for-large"><tbody><tr><td height="42" style="font-size:42px;line-height:42px;">&nbsp;</td></tr></tbody></table><table class="spacer some classes show-for-large"><tbody><tr><td height="666" style="font-size:666px;line-height:666px;">&nbsp;</td></tr></tbody></table>
4
4
  Stuff on bottom
5
5
  </div>
@@ -0,0 +1,6 @@
1
+ <!-- pending https://github.com/foundation/inky/issues/135 --->
2
+ <div>
3
+ Stuff on top
4
+ <table foo="bar" class="spacer some classes hide-for-large"><tbody><tr><td height="42" style="font-size:42px;line-height:42px;">&nbsp;</td></tr></tbody></table><table foo="bar" class="spacer some classes show-for-large"><tbody><tr><td height="666" style="font-size:666px;line-height:666px;">&nbsp;</td></tr></tbody></table>
5
+ Stuff on bottom
6
+ </div>
@@ -1 +1 @@
1
- <table class="wrapper" align="center"><tr><td class="wrapper-inner">In the wrap</td></tr></table>
1
+ <table class="wrapper" align="center"><tbody><tr><td class="wrapper-inner">In the wrap</td></tr></tbody></table>
@@ -1 +1 @@
1
- <table align="left" class="wrapper"><tr><td class="wrapper-inner">In the wrap</td></tr></table>
1
+ <table align="left" class="wrapper"><tbody><tr><td class="wrapper-inner">In the wrap</td></tr></tbody></table>
@@ -1 +1 @@
1
- <table foo="bar" class="wrapper some classes" align="center"><tr><td class="wrapper-inner">In the wrap</td></tr></table>
1
+ <table foo="bar" class="wrapper some classes" align="center"><tbody><tr><td class="wrapper-inner">In the wrap</td></tr></tbody></table>
@@ -0,0 +1,3 @@
1
+ <button foo="bar">
2
+ A label
3
+ </button>
@@ -1,3 +1,3 @@
1
- <button href="http://example.com" class="some classes" foo="bar">
1
+ <button href="http://example.com" class="some classes">
2
2
  A label
3
3
  </button>
@@ -0,0 +1,3 @@
1
+ <button href="http://example.com" foo="bar">
2
+ A label
3
+ </button>
@@ -0,0 +1 @@
1
+ <h-line/>
@@ -0,0 +1,8 @@
1
+ <!-- pending https://github.com/foundation/inky/issues/137 --->
2
+ Hello
3
+ <h-line/>
4
+ World
5
+ <h-line foo="bar"/>
6
+ Bye
7
+ <h-line class="x" foo="bar"/>
8
+ Zzz
@@ -0,0 +1,2 @@
1
+ <!-- pending https://github.com/foundation/inky/issues/137 --->
2
+ <h-line foo="bar"/>
@@ -0,0 +1,6 @@
1
+ <!-- pending https://github.com/foundation/inky/issues/135 --->
2
+ <div>
3
+ Stuff on top
4
+ <spacer foo="bar"/>
5
+ Stuff on bottom
6
+ </div>
@@ -1,5 +1,5 @@
1
1
  <div>
2
2
  Stuff on top
3
- <spacer class="some classes" foo="bar" size="42"/>
3
+ <spacer class="some classes" size="42"/>
4
4
  Stuff on bottom
5
5
  </div>
@@ -1,4 +1,4 @@
1
1
  <div>
2
2
  Stuff on top
3
- <spacer class="some classes" foo="bar" size-lg="666"/>
3
+ <spacer class="some classes" size-lg="666"/>
4
4
  <p>Stuff on bottom</p>
@@ -1,5 +1,5 @@
1
1
  <div>
2
2
  Stuff on top
3
- <spacer class="some classes" foo="bar" size-sm="42"></spacer>
3
+ <spacer class="some classes" size-sm="42"></spacer>
4
4
  Stuff on bottom
5
5
  </div>
@@ -1,5 +1,5 @@
1
1
  <div>
2
2
  Stuff on top
3
- <spacer class="some classes" foo="bar" size-sm="42" size-lg="666"/>
3
+ <spacer class="some classes" size-sm="42" size-lg="666"/>
4
4
  Stuff on bottom
5
5
  </div>
@@ -0,0 +1,6 @@
1
+ <!-- pending https://github.com/foundation/inky/issues/135 --->
2
+ <div>
3
+ Stuff on top
4
+ <spacer class="some classes" foo="bar" size-sm="42" size-lg="666"/>
5
+ Stuff on bottom
6
+ </div>