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.
Files changed (97) hide show
  1. data/History.txt +12 -0
  2. data/Rakefile +3 -5
  3. data/announcement.txt +24 -0
  4. data/doc/History_txt.html +272 -0
  5. data/doc/OrgRuby.html +149 -0
  6. data/doc/Orgmode.html +960 -0
  7. data/doc/Orgmode/Headline.html +522 -0
  8. data/doc/Orgmode/HtmlOutputBuffer.html +480 -0
  9. data/doc/Orgmode/Line.html +1251 -0
  10. data/doc/Orgmode/OutputBuffer.html +810 -0
  11. data/doc/Orgmode/Parser.html +852 -0
  12. data/doc/Orgmode/RegexpHelper.html +639 -0
  13. data/doc/Orgmode/TextileOutputBuffer.html +456 -0
  14. data/doc/README_rdoc.html +178 -0
  15. data/doc/announcement_txt.html +142 -0
  16. data/doc/bin/org-ruby.html +54 -0
  17. data/doc/created.rid +15 -0
  18. data/doc/images/brick.png +0 -0
  19. data/doc/images/brick_link.png +0 -0
  20. data/doc/images/bug.png +0 -0
  21. data/doc/images/bullet_black.png +0 -0
  22. data/doc/images/bullet_toggle_minus.png +0 -0
  23. data/doc/images/bullet_toggle_plus.png +0 -0
  24. data/doc/images/date.png +0 -0
  25. data/doc/images/find.png +0 -0
  26. data/doc/images/loadingAnimation.gif +0 -0
  27. data/doc/images/macFFBgHack.png +0 -0
  28. data/doc/images/package.png +0 -0
  29. data/doc/images/page_green.png +0 -0
  30. data/doc/images/page_white_text.png +0 -0
  31. data/doc/images/page_white_width.png +0 -0
  32. data/doc/images/plugin.png +0 -0
  33. data/doc/images/ruby.png +0 -0
  34. data/doc/images/tag_green.png +0 -0
  35. data/doc/images/wrench.png +0 -0
  36. data/doc/images/wrench_orange.png +0 -0
  37. data/doc/images/zoom.png +0 -0
  38. data/doc/index.html +306 -0
  39. data/doc/js/darkfish.js +116 -0
  40. data/doc/js/jquery.js +32 -0
  41. data/doc/js/quicksearch.js +114 -0
  42. data/doc/js/thickbox-compressed.js +10 -0
  43. data/doc/lib/org-ruby/headline_rb.html +52 -0
  44. data/doc/lib/org-ruby/html_output_buffer_rb.html +52 -0
  45. data/doc/lib/org-ruby/html_symbol_replace_rb.html +54 -0
  46. data/doc/lib/org-ruby/line_rb.html +52 -0
  47. data/doc/lib/org-ruby/output_buffer_rb.html +54 -0
  48. data/doc/lib/org-ruby/parser_rb.html +56 -0
  49. data/doc/lib/org-ruby/regexp_helper_rb.html +54 -0
  50. data/doc/lib/org-ruby/textile_output_buffer_rb.html +54 -0
  51. data/doc/lib/org-ruby/textile_symbol_replace_rb.html +54 -0
  52. data/doc/lib/org-ruby_rb.html +52 -0
  53. data/doc/rdoc.css +763 -0
  54. data/lib/org-ruby.rb +1 -1
  55. data/lib/org-ruby/headline.rb +2 -2
  56. data/lib/org-ruby/html_output_buffer.rb +62 -5
  57. data/lib/org-ruby/html_symbol_replace.rb +345 -0
  58. data/lib/org-ruby/line.rb +20 -9
  59. data/lib/org-ruby/output_buffer.rb +8 -1
  60. data/lib/org-ruby/parser.rb +47 -19
  61. data/lib/org-ruby/regexp_helper.rb +16 -0
  62. data/lib/org-ruby/textile_output_buffer.rb +37 -2
  63. data/lib/org-ruby/textile_symbol_replace.rb +345 -0
  64. data/org-ruby.gemspec +41 -0
  65. data/spec/headline_spec.rb +5 -0
  66. data/spec/html_examples/advanced-code.html +10 -0
  67. data/spec/html_examples/advanced-code.org +13 -0
  68. data/spec/html_examples/blockcomment.html +3 -0
  69. data/spec/html_examples/blockcomment.org +15 -0
  70. data/spec/html_examples/center.html +6 -0
  71. data/spec/html_examples/center.org +7 -0
  72. data/spec/html_examples/deflist.html +6 -0
  73. data/spec/html_examples/deflist.org +6 -0
  74. data/spec/html_examples/footnotes.html +10 -0
  75. data/spec/html_examples/footnotes.org +7 -0
  76. data/spec/html_examples/inline-formatting.html +8 -0
  77. data/spec/html_examples/inline-formatting.org +10 -0
  78. data/spec/html_examples/inline-images.html +1 -1
  79. data/spec/html_examples/lists.html +4 -0
  80. data/spec/html_examples/lists.org +11 -0
  81. data/spec/html_examples/subsupscript-nil.html +3 -0
  82. data/spec/html_examples/subsupscript-nil.org +6 -0
  83. data/spec/html_examples/subsupscript.html +3 -0
  84. data/spec/html_examples/subsupscript.org +5 -0
  85. data/spec/html_examples/tables.html +15 -0
  86. data/spec/html_examples/tables.org +24 -0
  87. data/spec/line_spec.rb +17 -13
  88. data/spec/spec_helper.rb +1 -2
  89. data/spec/textile_examples/center.org +7 -0
  90. data/spec/textile_examples/center.textile +6 -0
  91. data/spec/textile_examples/footnotes.org +7 -0
  92. data/spec/textile_examples/footnotes.textile +8 -0
  93. data/spec/textile_examples/tables.org +24 -0
  94. data/spec/textile_examples/tables.textile +17 -0
  95. data/util/gen-special-replace.el +37 -0
  96. metadata +111 -19
  97. 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&amp;height=550&amp;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">&quot; class=\&quot;title\&quot;&quot;</span>
235
+ <span class="ruby-keyword">else</span>
236
+ <span class="ruby-ivar">@title_decoration</span> = <span class="ruby-string">&quot;&quot;</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">&quot;HTML export options: #{@options.inspect}&quot;</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">&quot;FLUSH CODE ==========&gt; #{@buffer.inspect}&quot;</span>
284
+ <span class="ruby-ivar">@output</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@buffer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;\n&quot;</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">&gt;</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">&quot;::&quot;</span>, <span class="ruby-value">2</span>)
290
+ <span class="ruby-ivar">@output</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;#{HtmlBlockTag[:definition_term]}#{@title_decoration}&gt;&quot;</span> <span class="ruby-operator">&lt;&lt;</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">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;/#{HtmlBlockTag[:definition_term]}&gt;&quot;</span>
291
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">d</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span> <span class="ruby-keyword">then</span>
292
+ <span class="ruby-ivar">@output</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;#{HtmlBlockTag[:definition_descr]}#{@title_decoration}&gt;&quot;</span> <span class="ruby-operator">&lt;&lt;</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">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;/#{HtmlBlockTag[:definition_descr]}&gt;\n&quot;</span>
293
+ <span class="ruby-keyword">else</span>
294
+ <span class="ruby-ivar">@output</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;\n&quot;</span>
295
+ <span class="ruby-keyword">end</span>
296
+ <span class="ruby-ivar">@title_decoration</span> = <span class="ruby-string">&quot;&quot;</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">&gt;</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">&quot;FLUSH ==========&gt; #{@buffer_mode}&quot;</span>
301
+ <span class="ruby-identifier">output_indentation</span>
302
+ <span class="ruby-ivar">@output</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;#{HtmlBlockTag[@output_type]}#{@title_decoration}&gt;&quot;</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">&quot;Cannot be more than one headline!&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@buffered_lines</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;</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">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;span class=\&quot;heading-number heading-number-#{level}\&quot;&gt;#{heading_number} &lt;/span&gt;&quot;</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">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;span class=\&quot;todo-keyword #{keyword}\&quot;&gt;#{keyword} &lt;/span&gt;&quot;</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">&lt;&lt;</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">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;/#{HtmlBlockTag[@output_type]}&gt;\n&quot;</span>
318
+ <span class="ruby-ivar">@title_decoration</span> = <span class="ruby-string">&quot;&quot;</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">&quot;SKIP ==========&gt; #{@buffer_mode}&quot;</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">&lt;&lt;</span> <span class="ruby-string">&quot;&lt;div id=\&quot;footnotes\&quot;&gt;\n&lt;h2 class=\&quot;footnotes\&quot;&gt;Footnotes: &lt;/h2&gt;\n&lt;div id=\&quot;text-footnotes\&quot;&gt;\n&quot;</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">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;p class=\&quot;footnote\&quot;&gt;&lt;sup&gt;&lt;a class=\&quot;footnum\&quot; name=\&quot;fn.#{name}\&quot; href=\&quot;#fnr.#{name}\&quot;&gt;#{name}&lt;/a&gt;&lt;/sup&gt;&quot;</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">inline_formatting</span>(<span class="ruby-identifier">defi</span>) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;&lt;/p&gt;\n&quot;</span>
363
+ <span class="ruby-keyword">end</span>
364
+
365
+ <span class="ruby-ivar">@output</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;&lt;/div&gt;\n&lt;/div&gt;\n&quot;</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">&quot;&lt;/#{ModeTag[m]}&gt;\n&quot;</span>
405
+ <span class="ruby-ivar">@output</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;/#{ModeTag[m]}&gt;\n&quot;</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">&quot;&quot;</span>
445
+ <span class="ruby-identifier">css_class</span> = <span class="ruby-string">&quot; class=\&quot;src\&quot;&quot;</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">&quot; class=\&quot;example\&quot;&quot;</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">&quot; style=\&quot;text-align: center\&quot;&quot;</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">&quot;#{mode}: &lt;#{ModeTag[mode]}#{css_class}&gt;\n&quot;</span>
449
+ <span class="ruby-ivar">@output</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;#{ModeTag[mode]}#{css_class}&gt;\n&quot;</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">&quot;&quot;</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
+