livetext 0.9.06 → 0.9.07
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 +4 -4
- data/lib/livetext.rb +1 -1
- data/lib/standard.rb +21 -0
- data/plugin/bookish.rb +0 -21
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb9d448129a6a48466dee41a2775829697a98a99126b934a2a2836c83a078363
|
4
|
+
data.tar.gz: 42ff4b5f39db113b4e4abf9c4c2d57d1210cf4fe4bf93e582c2f9725f93ef53c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14d559a7f7f1856300d47c2a6e0d1ba820d5b1bf45c40629547187670442f520a8b111aa2136b638ab4ae4c0a02ed42bcf2e3f040e1f1564685041108822a81c
|
7
|
+
data.tar.gz: 9f74fe5f520c98e562159f7616ab8bb75582ee580fa0192c2841dfc893a34e2ef199bff80248bd18dbb25531f297ff3176f3fc138ccbe9dc312e56091999bc75
|
data/lib/livetext.rb
CHANGED
data/lib/standard.rb
CHANGED
@@ -56,6 +56,27 @@ EOS
|
|
56
56
|
def h5; _out "<h5>#{@_data}</h5>"; end
|
57
57
|
def h6; _out "<h6>#{@_data}</h6>"; end
|
58
58
|
|
59
|
+
def list
|
60
|
+
_out "<ul>"
|
61
|
+
_body {|line| _out "<li>#{line}</li>" }
|
62
|
+
_out "</ul>"
|
63
|
+
end
|
64
|
+
|
65
|
+
def list!
|
66
|
+
_out "<ul>"
|
67
|
+
lines = _body.each # {|line| _out "<li>#{line}</li>" }
|
68
|
+
loop do
|
69
|
+
line = lines.next
|
70
|
+
line = _format(line)
|
71
|
+
if line[0] == " "
|
72
|
+
_out line
|
73
|
+
else
|
74
|
+
_out "<li>#{line}</li>"
|
75
|
+
end
|
76
|
+
end
|
77
|
+
_out "</ul>"
|
78
|
+
end
|
79
|
+
|
59
80
|
def shell!
|
60
81
|
cmd = @_data.chomp
|
61
82
|
system(cmd)
|
data/plugin/bookish.rb
CHANGED
@@ -15,27 +15,6 @@ def h1; _out "<h1>#{@_data}</h1>"; end
|
|
15
15
|
def h2; _out "<h2>#{@_data}</h2>"; end
|
16
16
|
def h3; _out "<h3>#{@_data}</h3>"; end
|
17
17
|
|
18
|
-
def list
|
19
|
-
_out "<ul>"
|
20
|
-
_body {|line| _out "<li>#{line}</li>" }
|
21
|
-
_out "</ul>"
|
22
|
-
end
|
23
|
-
|
24
|
-
def list!
|
25
|
-
_out "<ul>"
|
26
|
-
lines = _body.each # {|line| _out "<li>#{line}</li>" }
|
27
|
-
loop do
|
28
|
-
line = lines.next
|
29
|
-
line = _format(line)
|
30
|
-
if line[0] == " "
|
31
|
-
_out line
|
32
|
-
else
|
33
|
-
_out "<li>#{line}</li>"
|
34
|
-
end
|
35
|
-
end
|
36
|
-
_out "</ul>"
|
37
|
-
end
|
38
|
-
|
39
18
|
def alpha_columns
|
40
19
|
n = @_args.first.to_i # FIXME: what if missing?
|
41
20
|
words = []
|