livetext 0.8.35 → 0.8.36

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5adce0c99c5ffb958eb7cbd6c786c42f4a61817
4
- data.tar.gz: 7ad86ff5bb31a9cf5b3c96e2cc5339c80e13846e
3
+ metadata.gz: d59d1d844e7e87c389bb784d5424e0974c409ab9
4
+ data.tar.gz: 607c461bd63d92b3d1dd06788811927f1500ef81
5
5
  SHA512:
6
- metadata.gz: 532a99096cfc9c9dbc882c6646c068755853c16e2f7d5bda7e330604b654daf45f3014d57bd31943e20528afa3e87f29542b9af886ff0e0330485d75ddae1a82
7
- data.tar.gz: d0692cc887b01187e4ff0379d8b6540f5c4af80f703380ca8b9aa88fcc8ad71e687151958f845ca215180f647b3b9aac16ae5c6c03589bc5d2200fc00171f1ca
6
+ metadata.gz: c7f337d78d5f74f371017960e08c6b0f3f753ced9067191b10ea7a74e247899a7a7a77508fb6c60ef1f12841478413a68d576850774e3c707d75c26c1a567761
7
+ data.tar.gz: e5fe7bd3819a1b46db277f85c3d8432267b353515baec6cc8ea5d296dfb6e3312be0ee6f0422ce7e52f17a22330083378c98080831d4edb6b15783f9fbee042a
@@ -42,7 +42,7 @@ def alpha_columns
42
42
  _puts "<table cellpadding=10>"
43
43
  words.each_slice(n) do |w|
44
44
  items = w.map {|x| "<tt>#{x}</tt>" }
45
- _puts "<tr><td width=5%></td><td>" + items.join("</td><td>") + "</td></tr>"
45
+ _puts "<tr><td width=5% valign=top></td><td>" + items.join("</td><td>") + "</td></tr>"
46
46
  end
47
47
  _puts "</table>"
48
48
  end
@@ -141,7 +141,10 @@ def table2
141
141
  cells = line.split(delim)
142
142
  percent = (100/cells.size.to_f).round
143
143
  _puts "<tr>"
144
- cells.each {|cell| _puts " <td width=#{percent}% #{extra}>#{cell}</td>" }
144
+ cells.each do |cell|
145
+ _puts " <td width=#{percent}% valign=top " +
146
+ "#{extra}>#{cell}</td>"
147
+ end
145
148
  _puts "</tr>"
146
149
  end
147
150
  _puts "</table></center><br><br>"
@@ -171,7 +174,10 @@ def table
171
174
  lines.each do |line|
172
175
  cells = line.split(delim)
173
176
  _puts "<tr>"
174
- cells.each.with_index {|cell, i| ; _puts " <td width=#{maxw}%>#{cell}</td>" }
177
+ cells.each.with_index do |cell, i|
178
+ _puts " <td width=#{maxw}% valign=top>" +
179
+ "#{cell}</td>"
180
+ end
175
181
  _puts "</tr>"
176
182
  end
177
183
  _puts "</table>"
@@ -4,6 +4,12 @@ require 'pp'
4
4
 
5
5
  require 'runeblog' # Now depends explicitly
6
6
 
7
+ def quote
8
+ _puts "<blockquote>"
9
+ _puts _body
10
+ _puts "</blockquote>"
11
+ end
12
+
7
13
  class ::Livetext::Functions # do this differently??
8
14
 
9
15
  def asset # FIXME this is baloney...
@@ -1,5 +1,5 @@
1
1
  class Livetext
2
- VERSION = "0.8.35"
2
+ VERSION = "0.8.36"
3
3
  end
4
4
 
5
5
  $Livetext = Livetext
@@ -10,9 +10,9 @@ Here goes...
10
10
  .pen red red
11
11
  .font 80 Arial
12
12
 
13
- .rectangle 50,50 300x300 green 9
13
+ .rectangle 50,50 300x300 black 9
14
14
 
15
- .text! 0,100 400x200
15
+ .text! 0,150 400x200
16
16
  This is
17
17
  only
18
18
  a test.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livetext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.35
4
+ version: 0.8.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-10 00:00:00.000000000 Z
11
+ date: 2018-07-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A smart text processor extensible in Ruby
14
14
  email: rubyhacker@gmail.com