livetext 0.8.63 → 0.8.64

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/livetext.rb +1 -1
  3. data/plugin/liveblog.rb +9 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ecefd7b98d49f5249cdc6c824c06723cd2aadcabc1fcdf9fa0e26b6278605af
4
- data.tar.gz: af7eabe2aa02501c29af2c756c443316eb751627c388ad4f19a1d8f9507e30c2
3
+ metadata.gz: 66e36e388671626a637d89ac83c96c5e8ff588be231567cfb33115492e7bf27d
4
+ data.tar.gz: d2a7d36660262d674fff0e8453bbb5e5f372ef861fe585211e9de3f0a5656a8e
5
5
  SHA512:
6
- metadata.gz: 16b6d95f524c33fb45c3247421e31377888b346dde63702663aff3b5f1bcbae62e9214bf4e7f0281bf82073b82bff2ad8343185920da17651a659cf091cd9b74
7
- data.tar.gz: e2d59f0f673fb6280fac1d6d41e0888192ee74a480c0b5e860d19ea5366582b18f5ddd834e6aef4e9a6f3a98a0e682a01c38dce567d084ba5e82619805b4b510
6
+ metadata.gz: 850d9dc8a83d9c8cc90cd29d97bd63ce72b02142ae8a97c2b0ca8863cdd46d84bc317fce7d916d65b77ede67e6d7e31c490c182f0432ec9b04a57d4c2dd128d6
7
+ data.tar.gz: ad9ca2eaa866b778b362dbbb3256ba0c35721cb7c4e4888770cafe58c70d698b776842ae7d5c9fb58a62c5e9af638d37cffef72d18a6054b0d3d8e97ee1612d1
@@ -1,5 +1,5 @@
1
1
  class Livetext
2
- VERSION = "0.8.63"
2
+ VERSION = "0.8.64"
3
3
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
4
4
  end
5
5
 
@@ -38,14 +38,21 @@ def inset
38
38
  lines = _body
39
39
  box = []
40
40
  lines.each do |line|
41
- if line[0] == "|"
41
+ line = line.dup
42
+ if line[0] == "/" # Only into inset
43
+ line[0] = ' '
44
+ box << line
45
+ line.replace(" ")
46
+ end
47
+ if line[0] == "|" # Into inset and body
42
48
  line[0] = ' '
43
49
  box << line
44
50
  end
45
51
  _passthru(line)
46
52
  end
47
53
  lr = _args.first
48
- _passthru "<div style='float:#{lr}; width: 25%; padding:8px; padding-right:12px; font-family:verdana'>"
54
+ wide = _args[1] || "25"
55
+ _passthru "<div style='float:#{lr}; width: #{wide}%; padding:8px; padding-right:12px; font-family:verdana'>"
49
56
  _passthru '<b><i>'
50
57
  _passthru box.join("<br>")
51
58
  _passthru_noline '</i></b></div>'
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.63
4
+ version: 0.8.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-23 00:00:00.000000000 Z
11
+ date: 2019-03-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A smart text processor extensible in Ruby
14
14
  email: rubyhacker@gmail.com