org-ruby 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +12 -0
- data/Rakefile +3 -5
- data/announcement.txt +24 -0
- data/doc/History_txt.html +272 -0
- data/doc/OrgRuby.html +149 -0
- data/doc/Orgmode.html +960 -0
- data/doc/Orgmode/Headline.html +522 -0
- data/doc/Orgmode/HtmlOutputBuffer.html +480 -0
- data/doc/Orgmode/Line.html +1251 -0
- data/doc/Orgmode/OutputBuffer.html +810 -0
- data/doc/Orgmode/Parser.html +852 -0
- data/doc/Orgmode/RegexpHelper.html +639 -0
- data/doc/Orgmode/TextileOutputBuffer.html +456 -0
- data/doc/README_rdoc.html +178 -0
- data/doc/announcement_txt.html +142 -0
- data/doc/bin/org-ruby.html +54 -0
- data/doc/created.rid +15 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +306 -0
- data/doc/js/darkfish.js +116 -0
- data/doc/js/jquery.js +32 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/org-ruby/headline_rb.html +52 -0
- data/doc/lib/org-ruby/html_output_buffer_rb.html +52 -0
- data/doc/lib/org-ruby/html_symbol_replace_rb.html +54 -0
- data/doc/lib/org-ruby/line_rb.html +52 -0
- data/doc/lib/org-ruby/output_buffer_rb.html +54 -0
- data/doc/lib/org-ruby/parser_rb.html +56 -0
- data/doc/lib/org-ruby/regexp_helper_rb.html +54 -0
- data/doc/lib/org-ruby/textile_output_buffer_rb.html +54 -0
- data/doc/lib/org-ruby/textile_symbol_replace_rb.html +54 -0
- data/doc/lib/org-ruby_rb.html +52 -0
- data/doc/rdoc.css +763 -0
- data/lib/org-ruby.rb +1 -1
- data/lib/org-ruby/headline.rb +2 -2
- data/lib/org-ruby/html_output_buffer.rb +62 -5
- data/lib/org-ruby/html_symbol_replace.rb +345 -0
- data/lib/org-ruby/line.rb +20 -9
- data/lib/org-ruby/output_buffer.rb +8 -1
- data/lib/org-ruby/parser.rb +47 -19
- data/lib/org-ruby/regexp_helper.rb +16 -0
- data/lib/org-ruby/textile_output_buffer.rb +37 -2
- data/lib/org-ruby/textile_symbol_replace.rb +345 -0
- data/org-ruby.gemspec +41 -0
- data/spec/headline_spec.rb +5 -0
- data/spec/html_examples/advanced-code.html +10 -0
- data/spec/html_examples/advanced-code.org +13 -0
- data/spec/html_examples/blockcomment.html +3 -0
- data/spec/html_examples/blockcomment.org +15 -0
- data/spec/html_examples/center.html +6 -0
- data/spec/html_examples/center.org +7 -0
- data/spec/html_examples/deflist.html +6 -0
- data/spec/html_examples/deflist.org +6 -0
- data/spec/html_examples/footnotes.html +10 -0
- data/spec/html_examples/footnotes.org +7 -0
- data/spec/html_examples/inline-formatting.html +8 -0
- data/spec/html_examples/inline-formatting.org +10 -0
- data/spec/html_examples/inline-images.html +1 -1
- data/spec/html_examples/lists.html +4 -0
- data/spec/html_examples/lists.org +11 -0
- data/spec/html_examples/subsupscript-nil.html +3 -0
- data/spec/html_examples/subsupscript-nil.org +6 -0
- data/spec/html_examples/subsupscript.html +3 -0
- data/spec/html_examples/subsupscript.org +5 -0
- data/spec/html_examples/tables.html +15 -0
- data/spec/html_examples/tables.org +24 -0
- data/spec/line_spec.rb +17 -13
- data/spec/spec_helper.rb +1 -2
- data/spec/textile_examples/center.org +7 -0
- data/spec/textile_examples/center.textile +6 -0
- data/spec/textile_examples/footnotes.org +7 -0
- data/spec/textile_examples/footnotes.textile +8 -0
- data/spec/textile_examples/tables.org +24 -0
- data/spec/textile_examples/tables.textile +17 -0
- data/util/gen-special-replace.el +37 -0
- metadata +111 -19
- data/.gitignore +0 -1
@@ -0,0 +1,480 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: Orgmode::HtmlOutputBuffer</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="class">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="../index.html">Home</a>
|
25
|
+
<a href="../index.html#classes">Classes</a>
|
26
|
+
<a href="../index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="../lib/org-ruby/html_output_buffer_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/org-ruby/html_output_buffer.rb">lib/org-ruby/html_output_buffer.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link">OutputBuffer</p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Method Quickref -->
|
64
|
+
<div id="method-list-section" class="section">
|
65
|
+
<h3 class="section-header">Methods</h3>
|
66
|
+
<ul class="link-list">
|
67
|
+
|
68
|
+
<li><a href="#method-c-new">::new</a></li>
|
69
|
+
|
70
|
+
<li><a href="#method-i-flush-21">#flush!</a></li>
|
71
|
+
|
72
|
+
<li><a href="#method-i-output_footnotes-21">#output_footnotes!</a></li>
|
73
|
+
|
74
|
+
<li><a href="#method-i-pop_mode">#pop_mode</a></li>
|
75
|
+
|
76
|
+
<li><a href="#method-i-push_mode">#push_mode</a></li>
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="project-metadata">
|
86
|
+
|
87
|
+
|
88
|
+
<div id="fileindex-section" class="section project-section">
|
89
|
+
<h3 class="section-header">Files</h3>
|
90
|
+
<ul>
|
91
|
+
|
92
|
+
<li class="file"><a href="../History_txt.html">History.txt</a></li>
|
93
|
+
|
94
|
+
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
95
|
+
|
96
|
+
<li class="file"><a href="../announcement_txt.html">announcement.txt</a></li>
|
97
|
+
|
98
|
+
</ul>
|
99
|
+
</div>
|
100
|
+
|
101
|
+
|
102
|
+
<div id="classindex-section" class="section project-section">
|
103
|
+
<h3 class="section-header">Class/Module Index
|
104
|
+
<span class="search-toggle"><img src="../images/find.png"
|
105
|
+
height="16" width="16" alt="[+]"
|
106
|
+
title="show/hide quicksearch" /></span></h3>
|
107
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
108
|
+
<fieldset>
|
109
|
+
<legend>Quicksearch</legend>
|
110
|
+
<input type="text" name="quicksearch" value=""
|
111
|
+
class="quicksearch-field" />
|
112
|
+
</fieldset>
|
113
|
+
</form>
|
114
|
+
|
115
|
+
<ul class="link-list">
|
116
|
+
|
117
|
+
<li><a href="../Orgmode.html">Orgmode</a></li>
|
118
|
+
|
119
|
+
<li><a href="../Orgmode/Headline.html">Orgmode::Headline</a></li>
|
120
|
+
|
121
|
+
<li><a href="../Orgmode/HtmlOutputBuffer.html">Orgmode::HtmlOutputBuffer</a></li>
|
122
|
+
|
123
|
+
<li><a href="../Orgmode/Line.html">Orgmode::Line</a></li>
|
124
|
+
|
125
|
+
<li><a href="../Orgmode/OutputBuffer.html">Orgmode::OutputBuffer</a></li>
|
126
|
+
|
127
|
+
<li><a href="../Orgmode/Parser.html">Orgmode::Parser</a></li>
|
128
|
+
|
129
|
+
<li><a href="../Orgmode/RegexpHelper.html">Orgmode::RegexpHelper</a></li>
|
130
|
+
|
131
|
+
<li><a href="../Orgmode/TextileOutputBuffer.html">Orgmode::TextileOutputBuffer</a></li>
|
132
|
+
|
133
|
+
<li><a href="../OrgRuby.html">OrgRuby</a></li>
|
134
|
+
|
135
|
+
</ul>
|
136
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
137
|
+
</div>
|
138
|
+
|
139
|
+
|
140
|
+
</div>
|
141
|
+
</div>
|
142
|
+
|
143
|
+
<div id="documentation">
|
144
|
+
<h1 class="class">Orgmode::HtmlOutputBuffer</h1>
|
145
|
+
|
146
|
+
<div id="description" class="description">
|
147
|
+
|
148
|
+
</div><!-- description -->
|
149
|
+
|
150
|
+
|
151
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
<!-- Constants -->
|
158
|
+
<div id="constants-list" class="section">
|
159
|
+
<h3 class="section-header">Constants</h3>
|
160
|
+
<dl>
|
161
|
+
|
162
|
+
<dt><a name="HtmlBlockTag">HtmlBlockTag</a></dt>
|
163
|
+
|
164
|
+
<dd class="description"></dd>
|
165
|
+
|
166
|
+
|
167
|
+
<dt><a name="ModeTag">ModeTag</a></dt>
|
168
|
+
|
169
|
+
<dd class="description"></dd>
|
170
|
+
|
171
|
+
|
172
|
+
<dt><a name="Tags">Tags</a></dt>
|
173
|
+
|
174
|
+
<dd class="description"></dd>
|
175
|
+
|
176
|
+
|
177
|
+
</dl>
|
178
|
+
</div>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
<!-- Attributes -->
|
183
|
+
<div id="attribute-method-details" class="method-section section">
|
184
|
+
<h3 class="section-header">Attributes</h3>
|
185
|
+
|
186
|
+
|
187
|
+
<div id="options-attribute-method" class="method-detail">
|
188
|
+
<a name="options"></a>
|
189
|
+
|
190
|
+
<div class="method-heading attribute-method-heading">
|
191
|
+
<span class="method-name">options</span><span
|
192
|
+
class="attribute-access-type">[R]</span>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
<div class="method-description">
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
</div>
|
200
|
+
</div>
|
201
|
+
|
202
|
+
</div><!-- attribute-method-details -->
|
203
|
+
|
204
|
+
|
205
|
+
<!-- Methods -->
|
206
|
+
|
207
|
+
<div id="public-class-method-details" class="method-section section">
|
208
|
+
<h3 class="section-header">Public Class Methods</h3>
|
209
|
+
|
210
|
+
|
211
|
+
<div id="new-method" class="method-detail ">
|
212
|
+
<a name="method-c-new"></a>
|
213
|
+
|
214
|
+
|
215
|
+
<div class="method-heading">
|
216
|
+
<span class="method-name">new</span><span
|
217
|
+
class="method-args">(output, opts = {})</span>
|
218
|
+
<span class="method-click-advice">click to toggle source</span>
|
219
|
+
</div>
|
220
|
+
|
221
|
+
|
222
|
+
<div class="method-description">
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
<div class="method-source-code" id="new-source">
|
229
|
+
<pre>
|
230
|
+
<span class="ruby-comment"># File lib/org-ruby/html_output_buffer.rb, line 38</span>
|
231
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">output</span>, <span class="ruby-identifier">opts</span> = {})
|
232
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">output</span>)
|
233
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-value">:decorate_title</span>] <span class="ruby-keyword">then</span>
|
234
|
+
<span class="ruby-ivar">@title_decoration</span> = <span class="ruby-string">" class=\"title\""</span>
|
235
|
+
<span class="ruby-keyword">else</span>
|
236
|
+
<span class="ruby-ivar">@title_decoration</span> = <span class="ruby-string">""</span>
|
237
|
+
<span class="ruby-keyword">end</span>
|
238
|
+
<span class="ruby-ivar">@options</span> = <span class="ruby-identifier">opts</span>
|
239
|
+
<span class="ruby-ivar">@footnotes</span> = {}
|
240
|
+
<span class="ruby-ivar">@logger</span>.<span class="ruby-identifier">debug</span> <span class="ruby-node">"HTML export options: #{@options.inspect}"</span>
|
241
|
+
<span class="ruby-keyword">end</span></pre>
|
242
|
+
</div><!-- new-source -->
|
243
|
+
|
244
|
+
</div>
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
</div><!-- new-method -->
|
250
|
+
|
251
|
+
|
252
|
+
</div><!-- public-class-method-details -->
|
253
|
+
|
254
|
+
<div id="public-instance-method-details" class="method-section section">
|
255
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
256
|
+
|
257
|
+
|
258
|
+
<div id="flush-21-method" class="method-detail ">
|
259
|
+
<a name="method-i-flush-21"></a>
|
260
|
+
|
261
|
+
|
262
|
+
<div class="method-heading">
|
263
|
+
<span class="method-name">flush!</span><span
|
264
|
+
class="method-args">()</span>
|
265
|
+
<span class="method-click-advice">click to toggle source</span>
|
266
|
+
</div>
|
267
|
+
|
268
|
+
|
269
|
+
<div class="method-description">
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
<div class="method-source-code" id="flush-21-source">
|
276
|
+
<pre>
|
277
|
+
<span class="ruby-comment"># File lib/org-ruby/html_output_buffer.rb, line 79</span>
|
278
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">flush!</span>
|
279
|
+
<span class="ruby-identifier">escape_buffer!</span>
|
280
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">mode_is_code</span>(<span class="ruby-ivar">@buffer_mode</span>) <span class="ruby-keyword">then</span>
|
281
|
+
<span class="ruby-comment"># Whitespace is significant in :code mode. Always output the buffer</span>
|
282
|
+
<span class="ruby-comment"># and do not do any additional translation.</span>
|
283
|
+
<span class="ruby-ivar">@logger</span>.<span class="ruby-identifier">debug</span> <span class="ruby-node">"FLUSH CODE ==========> #{@buffer.inspect}"</span>
|
284
|
+
<span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@buffer</span> <span class="ruby-operator"><<</span> <span class="ruby-string">"\n"</span>
|
285
|
+
<span class="ruby-keyword">else</span>
|
286
|
+
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@buffer</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span> <span class="ruby-keyword">and</span> <span class="ruby-ivar">@output_type</span> <span class="ruby-operator">==</span> <span class="ruby-value">:definition_list</span> <span class="ruby-keyword">then</span>
|
287
|
+
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">buffer_mode_is_table?</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">skip_tables?</span>
|
288
|
+
<span class="ruby-identifier">output_indentation</span>
|
289
|
+
<span class="ruby-identifier">d</span> = <span class="ruby-ivar">@buffer</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">"::"</span>, <span class="ruby-value">2</span>)
|
290
|
+
<span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"<#{HtmlBlockTag[:definition_term]}#{@title_decoration}>"</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">inline_formatting</span>(<span class="ruby-identifier">d</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">strip</span>) <span class="ruby-operator"><<</span> <span class="ruby-node">"</#{HtmlBlockTag[:definition_term]}>"</span>
|
291
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span> <span class="ruby-keyword">then</span>
|
292
|
+
<span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"<#{HtmlBlockTag[:definition_descr]}#{@title_decoration}>"</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">inline_formatting</span>(<span class="ruby-identifier">d</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">strip</span>) <span class="ruby-operator"><<</span> <span class="ruby-node">"</#{HtmlBlockTag[:definition_descr]}>\n"</span>
|
293
|
+
<span class="ruby-keyword">else</span>
|
294
|
+
<span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-string">"\n"</span>
|
295
|
+
<span class="ruby-keyword">end</span>
|
296
|
+
<span class="ruby-ivar">@title_decoration</span> = <span class="ruby-string">""</span>
|
297
|
+
<span class="ruby-keyword">end</span>
|
298
|
+
<span class="ruby-keyword">elsif</span> <span class="ruby-ivar">@buffer</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span> <span class="ruby-keyword">then</span>
|
299
|
+
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">buffer_mode_is_table?</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">skip_tables?</span>
|
300
|
+
<span class="ruby-ivar">@logger</span>.<span class="ruby-identifier">debug</span> <span class="ruby-node">"FLUSH ==========> #{@buffer_mode}"</span>
|
301
|
+
<span class="ruby-identifier">output_indentation</span>
|
302
|
+
<span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"<#{HtmlBlockTag[@output_type]}#{@title_decoration}>"</span>
|
303
|
+
<span class="ruby-keyword">if</span> (<span class="ruby-ivar">@buffered_lines</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">kind_of?</span>(<span class="ruby-constant">Headline</span>)) <span class="ruby-keyword">then</span>
|
304
|
+
<span class="ruby-identifier">headline</span> = <span class="ruby-ivar">@buffered_lines</span>[<span class="ruby-value">0</span>]
|
305
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-string">"Cannot be more than one headline!"</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@buffered_lines</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span>
|
306
|
+
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@options</span>[<span class="ruby-value">:export_heading_number</span>] <span class="ruby-keyword">then</span>
|
307
|
+
<span class="ruby-identifier">level</span> = <span class="ruby-identifier">headline</span>.<span class="ruby-identifier">level</span>
|
308
|
+
<span class="ruby-identifier">heading_number</span> = <span class="ruby-identifier">get_next_headline_number</span>(<span class="ruby-identifier">level</span>)
|
309
|
+
<span class="ruby-identifier">output</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"<span class=\"heading-number heading-number-#{level}\">#{heading_number} </span>"</span>
|
310
|
+
<span class="ruby-keyword">end</span>
|
311
|
+
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@options</span>[<span class="ruby-value">:export_todo</span>] <span class="ruby-keyword">and</span> <span class="ruby-identifier">headline</span>.<span class="ruby-identifier">keyword</span> <span class="ruby-keyword">then</span>
|
312
|
+
<span class="ruby-identifier">keyword</span> = <span class="ruby-identifier">headline</span>.<span class="ruby-identifier">keyword</span>
|
313
|
+
<span class="ruby-identifier">output</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"<span class=\"todo-keyword #{keyword}\">#{keyword} </span>"</span>
|
314
|
+
<span class="ruby-keyword">end</span>
|
315
|
+
<span class="ruby-keyword">end</span>
|
316
|
+
<span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">inline_formatting</span>(<span class="ruby-ivar">@buffer</span>)
|
317
|
+
<span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"</#{HtmlBlockTag[@output_type]}>\n"</span>
|
318
|
+
<span class="ruby-ivar">@title_decoration</span> = <span class="ruby-string">""</span>
|
319
|
+
<span class="ruby-keyword">else</span>
|
320
|
+
<span class="ruby-ivar">@logger</span>.<span class="ruby-identifier">debug</span> <span class="ruby-node">"SKIP ==========> #{@buffer_mode}"</span>
|
321
|
+
<span class="ruby-keyword">end</span>
|
322
|
+
<span class="ruby-keyword">end</span>
|
323
|
+
<span class="ruby-keyword">end</span>
|
324
|
+
<span class="ruby-identifier">clear_accumulation_buffer!</span>
|
325
|
+
<span class="ruby-keyword">end</span></pre>
|
326
|
+
</div><!-- flush-21-source -->
|
327
|
+
|
328
|
+
</div>
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
</div><!-- flush-21-method -->
|
334
|
+
|
335
|
+
|
336
|
+
<div id="output_footnotes-21-method" class="method-detail ">
|
337
|
+
<a name="method-i-output_footnotes-21"></a>
|
338
|
+
|
339
|
+
|
340
|
+
<div class="method-heading">
|
341
|
+
<span class="method-name">output_footnotes!</span><span
|
342
|
+
class="method-args">()</span>
|
343
|
+
<span class="method-click-advice">click to toggle source</span>
|
344
|
+
</div>
|
345
|
+
|
346
|
+
|
347
|
+
<div class="method-description">
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
<div class="method-source-code" id="output_footnotes-21-source">
|
354
|
+
<pre>
|
355
|
+
<span class="ruby-comment"># File lib/org-ruby/html_output_buffer.rb, line 130</span>
|
356
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">output_footnotes!</span>
|
357
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@options</span>[<span class="ruby-value">:export_footnotes</span>] <span class="ruby-keyword">and</span> <span class="ruby-keyword">not</span> <span class="ruby-ivar">@footnotes</span>.<span class="ruby-identifier">empty?</span>
|
358
|
+
|
359
|
+
<span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-string">"<div id=\"footnotes\">\n<h2 class=\"footnotes\">Footnotes: </h2>\n<div id=\"text-footnotes\">\n"</span>
|
360
|
+
|
361
|
+
<span class="ruby-ivar">@footnotes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">defi</span><span class="ruby-operator">|</span>
|
362
|
+
<span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"<p class=\"footnote\"><sup><a class=\"footnum\" name=\"fn.#{name}\" href=\"#fnr.#{name}\">#{name}</a></sup>"</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">inline_formatting</span>(<span class="ruby-identifier">defi</span>) <span class="ruby-operator"><<</span> <span class="ruby-string">"</p>\n"</span>
|
363
|
+
<span class="ruby-keyword">end</span>
|
364
|
+
|
365
|
+
<span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-string">"</div>\n</div>\n"</span>
|
366
|
+
|
367
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>
|
368
|
+
<span class="ruby-keyword">end</span></pre>
|
369
|
+
</div><!-- output_footnotes-21-source -->
|
370
|
+
|
371
|
+
</div>
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
</div><!-- output_footnotes-21-method -->
|
377
|
+
|
378
|
+
|
379
|
+
<div id="pop_mode-method" class="method-detail ">
|
380
|
+
<a name="method-i-pop_mode"></a>
|
381
|
+
|
382
|
+
|
383
|
+
<div class="method-heading">
|
384
|
+
<span class="method-name">pop_mode</span><span
|
385
|
+
class="method-args">(mode = nil)</span>
|
386
|
+
<span class="method-click-advice">click to toggle source</span>
|
387
|
+
</div>
|
388
|
+
|
389
|
+
|
390
|
+
<div class="method-description">
|
391
|
+
|
392
|
+
<p>We are leaving a mode. Close any tags that were opened when entering this
|
393
|
+
mode.</p>
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
<div class="method-source-code" id="pop_mode-source">
|
398
|
+
<pre>
|
399
|
+
<span class="ruby-comment"># File lib/org-ruby/html_output_buffer.rb, line 70</span>
|
400
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">pop_mode</span>(<span class="ruby-identifier">mode</span> = <span class="ruby-keyword">nil</span>)
|
401
|
+
<span class="ruby-identifier">m</span> = <span class="ruby-keyword">super</span>(<span class="ruby-identifier">mode</span>)
|
402
|
+
<span class="ruby-keyword">if</span> <span class="ruby-constant">ModeTag</span>[<span class="ruby-identifier">m</span>] <span class="ruby-keyword">then</span>
|
403
|
+
<span class="ruby-identifier">output_indentation</span>
|
404
|
+
<span class="ruby-ivar">@logger</span>.<span class="ruby-identifier">debug</span> <span class="ruby-node">"</#{ModeTag[m]}>\n"</span>
|
405
|
+
<span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"</#{ModeTag[m]}>\n"</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">mode</span> <span class="ruby-operator">==</span> <span class="ruby-value">:table</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">skip_tables?</span>
|
406
|
+
<span class="ruby-keyword">end</span>
|
407
|
+
<span class="ruby-keyword">end</span></pre>
|
408
|
+
</div><!-- pop_mode-source -->
|
409
|
+
|
410
|
+
</div>
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
</div><!-- pop_mode-method -->
|
416
|
+
|
417
|
+
|
418
|
+
<div id="push_mode-method" class="method-detail ">
|
419
|
+
<a name="method-i-push_mode"></a>
|
420
|
+
|
421
|
+
|
422
|
+
<div class="method-heading">
|
423
|
+
<span class="method-name">push_mode</span><span
|
424
|
+
class="method-args">(mode)</span>
|
425
|
+
<span class="method-click-advice">click to toggle source</span>
|
426
|
+
</div>
|
427
|
+
|
428
|
+
|
429
|
+
<div class="method-description">
|
430
|
+
|
431
|
+
<p>Output buffer is entering a new mode. Use this opportunity to write out one
|
432
|
+
of the block tags in the <a
|
433
|
+
href="HtmlOutputBuffer.html#ModeTag">ModeTag</a> constant to put this
|
434
|
+
information in the HTML stream.</p>
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
<div class="method-source-code" id="push_mode-source">
|
439
|
+
<pre>
|
440
|
+
<span class="ruby-comment"># File lib/org-ruby/html_output_buffer.rb, line 53</span>
|
441
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">push_mode</span>(<span class="ruby-identifier">mode</span>)
|
442
|
+
<span class="ruby-keyword">if</span> <span class="ruby-constant">ModeTag</span>[<span class="ruby-identifier">mode</span>] <span class="ruby-keyword">then</span>
|
443
|
+
<span class="ruby-identifier">output_indentation</span>
|
444
|
+
<span class="ruby-identifier">css_class</span> = <span class="ruby-string">""</span>
|
445
|
+
<span class="ruby-identifier">css_class</span> = <span class="ruby-string">" class=\"src\""</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">mode</span> <span class="ruby-operator">==</span> <span class="ruby-value">:src</span>
|
446
|
+
<span class="ruby-identifier">css_class</span> = <span class="ruby-string">" class=\"example\""</span> <span class="ruby-keyword">if</span> (<span class="ruby-identifier">mode</span> <span class="ruby-operator">==</span> <span class="ruby-value">:example</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">mode</span> <span class="ruby-operator">==</span> <span class="ruby-value">:inline_example</span>)
|
447
|
+
<span class="ruby-identifier">css_class</span> = <span class="ruby-string">" style=\"text-align: center\""</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">mode</span> <span class="ruby-operator">==</span> <span class="ruby-value">:center</span>
|
448
|
+
<span class="ruby-ivar">@logger</span>.<span class="ruby-identifier">debug</span> <span class="ruby-node">"#{mode}: <#{ModeTag[mode]}#{css_class}>\n"</span>
|
449
|
+
<span class="ruby-ivar">@output</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"<#{ModeTag[mode]}#{css_class}>\n"</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">mode</span> <span class="ruby-operator">==</span> <span class="ruby-value">:table</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">skip_tables?</span>
|
450
|
+
<span class="ruby-comment"># Entering a new mode obliterates the title decoration</span>
|
451
|
+
<span class="ruby-ivar">@title_decoration</span> = <span class="ruby-string">""</span>
|
452
|
+
<span class="ruby-keyword">end</span>
|
453
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">mode</span>)
|
454
|
+
<span class="ruby-keyword">end</span></pre>
|
455
|
+
</div><!-- push_mode-source -->
|
456
|
+
|
457
|
+
</div>
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
|
462
|
+
</div><!-- push_mode-method -->
|
463
|
+
|
464
|
+
|
465
|
+
</div><!-- public-instance-method-details -->
|
466
|
+
|
467
|
+
</div><!-- 5Buntitled-5D -->
|
468
|
+
|
469
|
+
|
470
|
+
</div><!-- documentation -->
|
471
|
+
|
472
|
+
<div id="validator-badges">
|
473
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
474
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
475
|
+
Rdoc Generator</a> 2</small>.</p>
|
476
|
+
</div>
|
477
|
+
|
478
|
+
</body>
|
479
|
+
</html>
|
480
|
+
|