html2text 0.3.0 → 0.4.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 +26 -4
  3. data/README.md +5 -5
  4. data/lib/html2text/version.rb +3 -1
  5. data/lib/html2text.rb +108 -106
  6. metadata +78 -109
  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,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html2text
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jevon Wright
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-15 00:00:00.000000000 Z
11
+ date: 2024-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: 1.8.5
22
+ version: '2.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: bundler-audit
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
25
45
  - !ruby/object:Gem::Version
26
- version: 1.8.5
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: colorize
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rake
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
27
75
  - !ruby/object:Gem::Dependency
28
76
  name: rspec
29
77
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +101,7 @@ dependencies:
53
101
  - !ruby/object:Gem::Version
54
102
  version: '0'
55
103
  - !ruby/object:Gem::Dependency
56
- name: colorize
104
+ name: rubocop
57
105
  requirement: !ruby/object:Gem::Requirement
58
106
  requirements:
59
107
  - - ">="
@@ -67,7 +115,21 @@ dependencies:
67
115
  - !ruby/object:Gem::Version
68
116
  version: '0'
69
117
  - !ruby/object:Gem::Dependency
70
- name: rake
118
+ name: rubocop-performance
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: rubocop-rake
71
133
  requirement: !ruby/object:Gem::Requirement
72
134
  requirements:
73
135
  - - ">="
@@ -92,58 +154,12 @@ files:
92
154
  - README.md
93
155
  - lib/html2text.rb
94
156
  - lib/html2text/version.rb
95
- - spec/examples/anchors.html
96
- - spec/examples/anchors.txt
97
- - spec/examples/basic.html
98
- - spec/examples/basic.txt
99
- - spec/examples/dom-processing.html
100
- - spec/examples/dom-processing.txt
101
- - spec/examples/empty.html
102
- - spec/examples/empty.txt
103
- - spec/examples/full_email.html
104
- - spec/examples/full_email.txt
105
- - spec/examples/huge-msoffice.html
106
- - spec/examples/huge-msoffice.txt
107
- - spec/examples/images.html
108
- - spec/examples/images.txt
109
- - spec/examples/invalid.html
110
- - spec/examples/invalid.txt
111
- - spec/examples/lists.html
112
- - spec/examples/lists.txt
113
- - spec/examples/more-anchors.html
114
- - spec/examples/more-anchors.txt
115
- - spec/examples/msoffice.html
116
- - spec/examples/msoffice.txt
117
- - spec/examples/nbsp.html
118
- - spec/examples/nbsp.txt
119
- - spec/examples/nested-divs.html
120
- - spec/examples/nested-divs.txt
121
- - spec/examples/newlines.html
122
- - spec/examples/newlines.txt
123
- - spec/examples/non-breaking-spaces.html
124
- - spec/examples/non-breaking-spaces.txt
125
- - spec/examples/pre.html
126
- - spec/examples/pre.txt
127
- - spec/examples/table.html
128
- - spec/examples/table.txt
129
- - spec/examples/test3.html
130
- - spec/examples/test3.txt
131
- - spec/examples/test4.html
132
- - spec/examples/test4.txt
133
- - spec/examples/utf8-example.html
134
- - spec/examples/utf8-example.txt
135
- - spec/examples/windows-1252-example.html
136
- - spec/examples/windows-1252-example.txt
137
- - spec/examples/zero-width-non-joiners.html
138
- - spec/examples/zero-width-non-joiners.txt
139
- - spec/examples_spec.rb
140
- - spec/html2text_spec.rb
141
- - spec/spec_helper.rb
142
157
  homepage: https://github.com/soundasleep/html2text_ruby
143
158
  licenses:
144
159
  - MIT
145
- metadata: {}
146
- post_install_message:
160
+ metadata:
161
+ rubygems_mfa_required: 'true'
162
+ post_install_message:
147
163
  rdoc_options: []
148
164
  require_paths:
149
165
  - lib
@@ -151,62 +167,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
167
  requirements:
152
168
  - - ">="
153
169
  - !ruby/object:Gem::Version
154
- version: '0'
170
+ version: '3.0'
155
171
  required_rubygems_version: !ruby/object:Gem::Requirement
156
172
  requirements:
157
173
  - - ">="
158
174
  - !ruby/object:Gem::Version
159
175
  version: '0'
160
176
  requirements: []
161
- rubygems_version: 3.0.2
162
- signing_key:
177
+ rubygems_version: 3.5.9
178
+ signing_key:
163
179
  specification_version: 4
164
180
  summary: Convert HTML into plain text.
165
- test_files:
166
- - spec/examples/nested-divs.html
167
- - spec/examples/pre.html
168
- - spec/examples/invalid.html
169
- - spec/examples/empty.html
170
- - spec/examples/table.html
171
- - spec/examples/basic.html
172
- - spec/examples/nbsp.html
173
- - spec/examples/utf8-example.html
174
- - spec/examples/newlines.txt
175
- - spec/examples/full_email.txt
176
- - spec/examples/msoffice.html
177
- - spec/examples/zero-width-non-joiners.txt
178
- - spec/examples/anchors.html
179
- - spec/examples/nbsp.txt
180
- - spec/examples/zero-width-non-joiners.html
181
- - spec/examples/test3.html
182
- - spec/examples/test4.txt
183
- - spec/examples/huge-msoffice.txt
184
- - spec/examples/full_email.html
185
- - spec/examples/utf8-example.txt
186
- - spec/examples/table.txt
187
- - spec/examples/huge-msoffice.html
188
- - spec/examples/more-anchors.txt
189
- - spec/examples/newlines.html
190
- - spec/examples/test4.html
191
- - spec/examples/basic.txt
192
- - spec/examples/lists.html
193
- - spec/examples/nested-divs.txt
194
- - spec/examples/non-breaking-spaces.html
195
- - spec/examples/invalid.txt
196
- - spec/examples/empty.txt
197
- - spec/examples/images.txt
198
- - spec/examples/non-breaking-spaces.txt
199
- - spec/examples/dom-processing.txt
200
- - spec/examples/test3.txt
201
- - spec/examples/dom-processing.html
202
- - spec/examples/lists.txt
203
- - spec/examples/pre.txt
204
- - spec/examples/anchors.txt
205
- - spec/examples/more-anchors.html
206
- - spec/examples/windows-1252-example.txt
207
- - spec/examples/images.html
208
- - spec/examples/msoffice.txt
209
- - spec/examples/windows-1252-example.html
210
- - spec/examples_spec.rb
211
- - spec/html2text_spec.rb
212
- - spec/spec_helper.rb
181
+ 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).