html2text 0.3.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -1
  3. data/README.md +5 -5
  4. data/lib/html2text/version.rb +3 -1
  5. data/lib/html2text.rb +108 -116
  6. metadata +62 -110
  7. data/spec/examples/anchors.html +0 -12
  8. data/spec/examples/anchors.txt +0 -5
  9. data/spec/examples/basic.html +0 -21
  10. data/spec/examples/basic.txt +0 -15
  11. data/spec/examples/dom-processing.html +0 -8
  12. data/spec/examples/dom-processing.txt +0 -1
  13. data/spec/examples/empty.html +0 -0
  14. data/spec/examples/empty.txt +0 -0
  15. data/spec/examples/full_email.html +0 -220
  16. data/spec/examples/full_email.txt +0 -54
  17. data/spec/examples/huge-msoffice.html +0 -1
  18. data/spec/examples/huge-msoffice.txt +0 -25872
  19. data/spec/examples/images.html +0 -54
  20. data/spec/examples/images.txt +0 -27
  21. data/spec/examples/invalid.html +0 -4
  22. data/spec/examples/invalid.txt +0 -1
  23. data/spec/examples/lists.html +0 -24
  24. data/spec/examples/lists.txt +0 -17
  25. data/spec/examples/more-anchors.html +0 -14
  26. data/spec/examples/more-anchors.txt +0 -7
  27. data/spec/examples/msoffice.html +0 -1
  28. data/spec/examples/msoffice.txt +0 -12
  29. data/spec/examples/nbsp.html +0 -1
  30. data/spec/examples/nbsp.txt +0 -1
  31. data/spec/examples/nested-divs.html +0 -17
  32. data/spec/examples/nested-divs.txt +0 -12
  33. data/spec/examples/newlines.html +0 -50
  34. data/spec/examples/newlines.txt +0 -35
  35. data/spec/examples/non-breaking-spaces.html +0 -1
  36. data/spec/examples/non-breaking-spaces.txt +0 -1
  37. data/spec/examples/pre.html +0 -10
  38. data/spec/examples/pre.txt +0 -8
  39. data/spec/examples/table.html +0 -53
  40. data/spec/examples/table.txt +0 -7
  41. data/spec/examples/test3.html +0 -1
  42. data/spec/examples/test3.txt +0 -2
  43. data/spec/examples/test4.html +0 -1
  44. data/spec/examples/test4.txt +0 -5
  45. data/spec/examples/utf8-example.html +0 -4
  46. data/spec/examples/utf8-example.txt +0 -2
  47. data/spec/examples/windows-1252-example.html +0 -4
  48. data/spec/examples/windows-1252-example.txt +0 -2
  49. data/spec/examples/zero-width-non-joiners.html +0 -1
  50. data/spec/examples/zero-width-non-joiners.txt +0 -1
  51. data/spec/examples_spec.rb +0 -41
  52. data/spec/html2text_spec.rb +0 -58
  53. data/spec/spec_helper.rb +0 -4
metadata CHANGED
@@ -1,29 +1,76 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html2text
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jevon Wright
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2019-06-11 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: nokogiri
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '1.0'
19
+ - - "<"
18
20
  - !ruby/object:Gem::Version
19
- version: 1.10.3
21
+ version: '2.0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
23
25
  requirements:
24
- - - "~>"
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: '1.0'
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: '2.0'
32
+ - !ruby/object:Gem::Dependency
33
+ name: bundler-audit
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ type: :development
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: colorize
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ type: :development
54
+ prerelease: false
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
25
58
  - !ruby/object:Gem::Version
26
- version: 1.10.3
59
+ version: '0'
60
+ - !ruby/object:Gem::Dependency
61
+ name: rake
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
27
74
  - !ruby/object:Gem::Dependency
28
75
  name: rspec
29
76
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +100,7 @@ dependencies:
53
100
  - !ruby/object:Gem::Version
54
101
  version: '0'
55
102
  - !ruby/object:Gem::Dependency
56
- name: colorize
103
+ name: rubocop
57
104
  requirement: !ruby/object:Gem::Requirement
58
105
  requirements:
59
106
  - - ">="
@@ -67,7 +114,7 @@ dependencies:
67
114
  - !ruby/object:Gem::Version
68
115
  version: '0'
69
116
  - !ruby/object:Gem::Dependency
70
- name: rake
117
+ name: rubocop-performance
71
118
  requirement: !ruby/object:Gem::Requirement
72
119
  requirements:
73
120
  - - ">="
@@ -81,7 +128,7 @@ dependencies:
81
128
  - !ruby/object:Gem::Version
82
129
  version: '0'
83
130
  - !ruby/object:Gem::Dependency
84
- name: bundler-audit
131
+ name: rubocop-rake
85
132
  requirement: !ruby/object:Gem::Requirement
86
133
  requirements:
87
134
  - - ">="
@@ -106,58 +153,11 @@ files:
106
153
  - README.md
107
154
  - lib/html2text.rb
108
155
  - lib/html2text/version.rb
109
- - spec/examples/anchors.html
110
- - spec/examples/anchors.txt
111
- - spec/examples/basic.html
112
- - spec/examples/basic.txt
113
- - spec/examples/dom-processing.html
114
- - spec/examples/dom-processing.txt
115
- - spec/examples/empty.html
116
- - spec/examples/empty.txt
117
- - spec/examples/full_email.html
118
- - spec/examples/full_email.txt
119
- - spec/examples/huge-msoffice.html
120
- - spec/examples/huge-msoffice.txt
121
- - spec/examples/images.html
122
- - spec/examples/images.txt
123
- - spec/examples/invalid.html
124
- - spec/examples/invalid.txt
125
- - spec/examples/lists.html
126
- - spec/examples/lists.txt
127
- - spec/examples/more-anchors.html
128
- - spec/examples/more-anchors.txt
129
- - spec/examples/msoffice.html
130
- - spec/examples/msoffice.txt
131
- - spec/examples/nbsp.html
132
- - spec/examples/nbsp.txt
133
- - spec/examples/nested-divs.html
134
- - spec/examples/nested-divs.txt
135
- - spec/examples/newlines.html
136
- - spec/examples/newlines.txt
137
- - spec/examples/non-breaking-spaces.html
138
- - spec/examples/non-breaking-spaces.txt
139
- - spec/examples/pre.html
140
- - spec/examples/pre.txt
141
- - spec/examples/table.html
142
- - spec/examples/table.txt
143
- - spec/examples/test3.html
144
- - spec/examples/test3.txt
145
- - spec/examples/test4.html
146
- - spec/examples/test4.txt
147
- - spec/examples/utf8-example.html
148
- - spec/examples/utf8-example.txt
149
- - spec/examples/windows-1252-example.html
150
- - spec/examples/windows-1252-example.txt
151
- - spec/examples/zero-width-non-joiners.html
152
- - spec/examples/zero-width-non-joiners.txt
153
- - spec/examples_spec.rb
154
- - spec/html2text_spec.rb
155
- - spec/spec_helper.rb
156
156
  homepage: https://github.com/soundasleep/html2text_ruby
157
157
  licenses:
158
158
  - MIT
159
- metadata: {}
160
- post_install_message:
159
+ metadata:
160
+ rubygems_mfa_required: 'true'
161
161
  rdoc_options: []
162
162
  require_paths:
163
163
  - lib
@@ -165,62 +165,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - ">="
167
167
  - !ruby/object:Gem::Version
168
- version: '0'
168
+ version: '3.3'
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  requirements: []
175
- rubygems_version: 3.0.3
176
- signing_key:
175
+ rubygems_version: 4.0.10
177
176
  specification_version: 4
178
177
  summary: Convert HTML into plain text.
179
- test_files:
180
- - spec/examples/nested-divs.html
181
- - spec/examples/pre.html
182
- - spec/examples/invalid.html
183
- - spec/examples/empty.html
184
- - spec/examples/table.html
185
- - spec/examples/basic.html
186
- - spec/examples/nbsp.html
187
- - spec/examples/utf8-example.html
188
- - spec/examples/newlines.txt
189
- - spec/examples/full_email.txt
190
- - spec/examples/msoffice.html
191
- - spec/examples/zero-width-non-joiners.txt
192
- - spec/examples/anchors.html
193
- - spec/examples/nbsp.txt
194
- - spec/examples/zero-width-non-joiners.html
195
- - spec/examples/test3.html
196
- - spec/examples/test4.txt
197
- - spec/examples/huge-msoffice.txt
198
- - spec/examples/full_email.html
199
- - spec/examples/utf8-example.txt
200
- - spec/examples/table.txt
201
- - spec/examples/huge-msoffice.html
202
- - spec/examples/more-anchors.txt
203
- - spec/examples/newlines.html
204
- - spec/examples/test4.html
205
- - spec/examples/basic.txt
206
- - spec/examples/lists.html
207
- - spec/examples/nested-divs.txt
208
- - spec/examples/non-breaking-spaces.html
209
- - spec/examples/invalid.txt
210
- - spec/examples/empty.txt
211
- - spec/examples/images.txt
212
- - spec/examples/non-breaking-spaces.txt
213
- - spec/examples/dom-processing.txt
214
- - spec/examples/test3.txt
215
- - spec/examples/dom-processing.html
216
- - spec/examples/lists.txt
217
- - spec/examples/pre.txt
218
- - spec/examples/anchors.txt
219
- - spec/examples/more-anchors.html
220
- - spec/examples/windows-1252-example.txt
221
- - spec/examples/images.html
222
- - spec/examples/msoffice.txt
223
- - spec/examples/windows-1252-example.html
224
- - spec/examples_spec.rb
225
- - spec/html2text_spec.rb
226
- - spec/spec_helper.rb
178
+ test_files: []
@@ -1,12 +0,0 @@
1
- A document without any HTML open/closing tags.
2
-
3
- <hr>
4
-
5
- We try and use the representation given by common browsers of the
6
- HTML document, so that it looks similar when converted to plain text.
7
-
8
- <a href="http://foo.com">visit foo.com</a> - or <a href="http://www.foo.com">http://www.foo.com</a>
9
-
10
- <a href="http://foo.com" title="a link with a title">link</a>
11
-
12
- <h2><a name="anchor">An anchor which will not appear</a></h2>
@@ -1,5 +0,0 @@
1
- A document without any HTML open/closing tags.
2
- ---------------------------------------------------------------
3
- We try and use the representation given by common browsers of the HTML document, so that it looks similar when converted to plain text. [visit foo.com](http://foo.com) - or http://www.foo.com [link](http://foo.com)
4
-
5
- [An anchor which will not appear]
@@ -1,21 +0,0 @@
1
- <html>
2
- <title>Ignored Title</title>
3
- <body>
4
- <h1>Hello, World!</h1>
5
-
6
- <p>This is some e-mail content.
7
- Even though it has whitespace and newlines, the e-mail converter
8
- will handle it correctly.
9
-
10
- <p>Even mismatched tags.</p>
11
-
12
- <div>A div</div>
13
- <div>Another div</div>
14
- <div>A div<div>within a div</div></div>
15
-
16
- <p>Another line<br />Yet another line</p>
17
-
18
- <a href="http://foo.com">A link</a>
19
-
20
- </body>
21
- </html>
@@ -1,15 +0,0 @@
1
- Hello, World!
2
-
3
- This is some e-mail content. Even though it has whitespace and newlines, the e-mail converter will handle it correctly.
4
-
5
- Even mismatched tags.
6
-
7
- A div
8
- Another div
9
- A div
10
- within a div
11
-
12
- Another line
13
- Yet another line
14
-
15
- [A link](http://foo.com)
@@ -1,8 +0,0 @@
1
- <html>
2
- <body>
3
- <?a
4
- I am a random piece of code
5
- ?>
6
- Hello
7
- </body>
8
- </html>
@@ -1 +0,0 @@
1
- Hello
File without changes
File without changes
@@ -1,220 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <meta name="viewport" content="width=680">
6
- </head>
7
- <body class="cat-update-email cat-update" style="background: #ffccee; color: blue; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; text-align: center" bgcolor="#ffccee">
8
- <style type="text/css">
9
- body.cat-update-email {
10
- margin: 0; padding: 0; background: #ffccee; color: blue; text-align: center;
11
- }
12
- body.cat-update-email {
13
- font-size: 12px; font-family: Times New Roman; font-weight: normal;
14
- }
15
- body.cat-update-email th {
16
- font-size: 12px; font-family: Times New Roman; font-weight: normal;
17
- }
18
- body.cat-update-email td {
19
- font-size: 12px; font-family: Times New Roman; font-weight: normal;
20
- }
21
- </style>
22
- <table class="header-wrapper" style="border-spacing: 0; border: none; margin: 0; width: 100%">
23
- <tr>
24
- <td class="header" style="background: none; color: #999; font-family: Times New Roman; font-size: 12px; font-weight: normal; padding: 15px 0">
25
- <table cellspacing="0" cellpadding="0" border="0" style="margin: 0 auto; padding: 0 20px; width: 640px">
26
- <tr>
27
- <th style="font-family: Times New Roman; font-size: 12px; font-weight: normal">
28
- <a class="logo" href="http://localhost/home" style="color: red; text-decoration: none">
29
- <img border="0" height="32" src="test.png" width="200" style="display: block">
30
- </a> </th>
31
- <td class="account-number" style="color: white; font-family: Times New Roman; font-size: 12px; font-weight: normal; text-align: right" align="right">
32
- 16 December 2015<br>
33
- Account 123
34
- </td>
35
- </tr>
36
- </table>
37
- </td>
38
- </tr>
39
- </table>
40
-
41
- <table class="section-wrapper" style="border-spacing: 0; border: none; margin: 0 auto 20px; width: 640px">
42
- <tr>
43
- <td class="salutation section" style="background: white; color: black; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0 auto 20px; padding: 40px 20px; text-align: left; width: 600px" align="left" bgcolor="white">
44
- <h1 class="user_greeting" style="font-family: Times New Roman; font-size: 1.8; font-weight: normal; line-height: 1.2; margin: 0 0 1em">
45
- Hi Susan
46
- </h1>
47
- <p class="message" style="font-size: 1.5em; line-height: 1.2; margin: 0">
48
- Here is your cat report.
49
- </p>
50
-
51
- </td>
52
- </tr>
53
- </table>
54
-
55
-
56
-
57
-
58
- <table class="section-wrapper" style="border-spacing: 0; border: none; margin: 0 auto 20px; width: 640px">
59
- <tr>
60
- <td class="balance section" style="background: white; color: black; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0 auto 20px; padding: 40px 20px; text-align: left; width: 600px" align="left" bgcolor="white">
61
- <div class="account-status-heading" style="font-size: 2.5em; line-height: 1em; padding: 30px 20px; text-align: center" align="center">You have found <span class="status-cats-negative" style="color: #df0000">5 cats</span> less than anyone else</div>
62
-
63
- <div id="cat-update-action-buttons">
64
- <div id="buy-button" style="text-align: center" align="center">
65
- <a class="btn-alert" href="http://localhost/cats" id="buy-cats-button" style="-moz-appearance: none; -webkit-appearance: none; background: #DF0000; border-radius: 3px; border: 11px solid #df0000; color: #fff; cursor: pointer; display: block; font-size: 16px; height: 16px; line-height: 16px; margin: 0 auto; text-decoration: none; transition: background-color .15s; width: 120px">Find more cats</a>
66
- </div>
67
- </div>
68
- </td>
69
- </tr>
70
- </table>
71
-
72
- <table class="section-wrapper" style="border-spacing: 0; border: none; margin: 0 auto 20px; width: 640px">
73
- <tr>
74
- <td class="cats section" id="cats" style="background: white; color: black; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0 auto 20px; padding: 40px 20px; text-align: left; width: 600px" align="left" bgcolor="white">
75
- <div class="cats-usage">
76
- <h2 style="font-family: Times New Roman; font-size: 1.8; font-weight: normal; line-height: 1.2; margin: 0">Down the road</h2>
77
- <p class="fine-print" style="margin: 0">Across the hall</p>
78
-
79
- <h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 10px 0 0">Your achievements</h3>
80
- <table class="current-usage with-icon-left" style="border-collapse: collapse; border-spacing: 0; margin-bottom: 20px; margin-top: 20px; width: 100%">
81
- <tr>
82
- <th style="border: none; font-family: Times New Roman; font-size: 14px; font-weight: bold; margin: 0; padding: 0; text-align: left; vertical-align: middle; width: 50px" align="left" valign="middle"><img src="test.png"></th>
83
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; vertical-align: top; width: 550px" valign="top">
84
- <div class="top">You're currently finding about</div>
85
- <div class="large" style="color: black; font-size: 18px; padding: 4px 0">12 cats</div>
86
- <div class="bottom">per day</div>
87
- </td>
88
- </tr>
89
- <tr><td colspan="2" style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; vertical-align: top; width: 550px" valign="top"> </td></tr>
90
- <tr>
91
- <td colspan="2" style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; vertical-align: top; width: 550px" valign="top"><img alt="Number of cats found" src="test.png"></td>
92
- </tr>
93
- </table>
94
- </div>
95
-
96
-
97
- <div class="summary">
98
- <hr class="fine-print" style="border-bottom-color: #eee; border-bottom-style: solid; border-width: 0 0 1px; margin: 20px 0">
99
-
100
- <h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 10px 0 0">Your last cat was found two days ago.</h3>
101
- <p class="fine-print" style="margin: 0">One type of cat is a kitten.</p>
102
-
103
- <table class="readings" style="border-collapse: collapse; border-spacing: 0; margin: 10px 0; width: 100%">
104
- <tr style="color: #BD236C">
105
- <td class="left-column" style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; width: 5%">
106
- <img src="test.png" style="padding-top: 10px">
107
- </td>
108
- <td class="center-column" style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; width: 60%">
109
- <h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 10px 0 0">Special account <span class="nickname" style="font-size: 12px"></span> <span class="fine-print">A1</span>
110
- </h3>
111
- </td>
112
- <td class="right-column" style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0; width: 20%">
113
- <h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 10px 0 0">12.345</h3>
114
- </td>
115
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 0"></td>
116
- </tr>
117
- </table>
118
-
119
- </div>
120
-
121
- </td>
122
- </tr>
123
- </table>
124
-
125
- <div class="banner" style="margin: 0 auto 20px; padding: 10px; text-align: center; width: 640px" align="center">
126
- <a href="http://localhost/logout" style="color: red; text-decoration: none">
127
- <img alt="" border="0" height="177" src="http://localhost/photo1.png" width="600">
128
- </a>
129
- </div>
130
-
131
- <table class="section-wrapper" style="border-spacing: 0; border: none; margin: 0 auto 20px; width: 640px">
132
- <tr>
133
- <td class="tips section" style="background: white; color: black; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0 auto 20px; padding: 40px 20px; text-align: left; width: 600px" align="left" bgcolor="white">
134
- <table style="border-collapse: collapse; border-spacing: 0; width: 100%">
135
- <tr>
136
- <td colspan="3" style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0; vertical-align: top; width: 200px" valign="top"><h2 style="font-family: Times New Roman; font-size: 1.8; font-weight: normal; line-height: 1.2; margin: 0 0 10px">How can you find more cats?</h2></td>
137
- </tr>
138
-
139
- <tr class="icon">
140
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0; vertical-align: top; width: 200px" valign="top"><img height="40" src="http://localhost/photo1.png" width="40"></td>
141
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top"><img height="40" src="http://localhost/photo2.png" width="40"></td>
142
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top"><img height="40" src="http://localhost/photo3.png" width="40"></td>
143
- </tr>
144
-
145
- <tr class="subtitle">
146
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0; vertical-align: top; width: 200px" valign="top"><h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 0 0 5px">Look in trash cans</h3></td>
147
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top"><h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 0 0 5px">Start meowing</h3></td>
148
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top"><h3 style="font-family: Times New Roman; font-size: 18px; font-weight: normal; line-height: 2em; margin: 0 0 5px">Eat cat food</h3></td>
149
- </tr>
150
-
151
- <tr class="body" style="color: green">
152
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0; vertical-align: top; width: 200px" valign="top">Some cats like to hang out in trash cans. Some cats do not.</td>
153
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top">Some cats are attracted to similar tones.</td>
154
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top">So one day your tears may smell like cat food, attracting more cats.</td>
155
- </tr>
156
-
157
- <tr class="image">
158
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0; vertical-align: top; width: 200px" valign="top">
159
- <a href="https://localhost/about" style="color: red; text-decoration: none">
160
- <img border="0" height="130" src="http://localhost/photo1.png" style="display: block; margin: 10px 0" width="165">
161
- </a>
162
- </td>
163
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top">
164
- <a href="https://localhost/about" style="color: red; text-decoration: none">
165
- <img border="0" height="130" src="http://localhost/photo2.png" style="display: block; margin: 10px 0" width="165">
166
- </a>
167
- </td>
168
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top">
169
- <a href="https://localhost/about" style="color: red; text-decoration: none">
170
- <img border="0" height="130" src="http://localhost/photo3.png" style="display: block; margin: 10px 0" width="165">
171
- </a>
172
- </td>
173
- </tr>
174
-
175
- <tr class="tips-footer" style="color: green">
176
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0; vertical-align: top; width: 200px" valign="top">
177
- <a href="https://github.com/soundasleep/html2text_ruby" style="color: red; text-decoration: none">Cats are great.</a>
178
- </td>
179
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top">
180
- <a href="https://github.com/soundasleep/html2text_ruby" style="color: red; text-decoration: none">Find more cats.</a>
181
- </td>
182
- <td style="border: none; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0; padding: 5px 0 0 17px; vertical-align: top; width: 200px" valign="top">
183
- <a href="https://github.com/soundasleep/html2text_ruby" style="color: red; text-decoration: none">Do more things.</a>
184
- </td>
185
- </tr>
186
- </table>
187
- </td>
188
- </tr>
189
- </table>
190
-
191
-
192
-
193
-
194
-
195
- <table class="footer-wrapper" style="margin: 0 auto 20px">
196
- <tr>
197
- <td class="footer" style="color: #9B9B9B; font-family: Times New Roman; font-size: 12px; font-weight: normal; margin: 0 auto 4em; text-align: left; width: 600px" align="left">
198
- <h3 style="font-family: Times New Roman; font-size: 1.2; font-weight: normal; line-height: 2em; margin: 0">
199
- <a href="http://localhost/contact" style="color: red; text-decoration: none">Contact us</a>
200
- </h3>
201
- <p style="margin: 0 0 1em">
202
- cats@cats.com<br>
203
- Monday and Friday
204
- </p>
205
-
206
- <p style="margin: 0 0 1em"><a href="https://github.com/soundasleep/html2text" style="color: red; text-decoration: none"><img align="absmiddle" height="26" src="test.png" width="26"></a>
207
- <a href="https://github.com/soundasleep/html2text_ruby" style="color: red; text-decoration: none"><img align="absmiddle" height="26" src="test.png" width="26"></a>
208
- </p>
209
-
210
- <p class="message no-web-display" style="margin: 0">Having trouble seeing this email?
211
- <a href="http://localhost/view_it_online" style="color: red; text-decoration: none">View it online</a>.
212
- </p>
213
-
214
- </td>
215
- </tr>
216
- </table>
217
- <script async type="text/javascript" id="profiler" src="/profiler.js" data-version="1.0"></script>
218
- </body>
219
- </html>
220
-
@@ -1,54 +0,0 @@
1
- http://localhost/home 16 December 2015
2
- Account 123
3
-
4
- Hi Susan
5
-
6
- Here is your cat report.
7
-
8
- You have found 5 cats less than anyone else
9
- [Find more cats](http://localhost/cats)
10
-
11
- Down the road
12
-
13
- Across the hall
14
-
15
- Your achievements
16
-
17
- You're currently finding about
18
- 12 cats
19
- per day
20
-
21
- [Number of cats found]
22
-
23
- ---------------------------------------------------------------
24
-
25
- Your last cat was found two days ago.
26
-
27
- One type of cat is a kitten.
28
-
29
- Special account A1
30
-
31
- 12.345
32
-
33
- http://localhost/logout
34
-
35
- How can you find more cats?
36
-
37
- Look in trash cans
38
-
39
- Start meowing
40
-
41
- Eat cat food
42
-
43
- Some cats like to hang out in trash cans. Some cats do not. Some cats are attracted to similar tones. So one day your tears may smell like cat food, attracting more cats.
44
- https://localhost/about https://localhost/about https://localhost/about
45
- [Cats are great.](https://github.com/soundasleep/html2text_ruby) [Find more cats.](https://github.com/soundasleep/html2text_ruby) [Do more things.](https://github.com/soundasleep/html2text_ruby)
46
-
47
- [Contact us](http://localhost/contact)
48
-
49
- cats@cats.com
50
- Monday and Friday
51
-
52
- https://github.com/soundasleep/html2text https://github.com/soundasleep/html2text_ruby
53
-
54
- Having trouble seeing this email? [View it online](http://localhost/view_it_online).