aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/html_format.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-12-16 23:19:35 -0500
committerRalph Amissah <ralph@amissah.com>2010-12-16 23:46:13 -0500
commitff4ceb260ae3931072810a0ada124841d3b8e032 (patch)
treea736b8a7c4d7ce046d23f3cc834619e374f9bf68 /lib/sisu/v2/html_format.rb
parentdal_syntax, sisu syntax modification (insist on curly braces) (diff)
document objects: page break; object separator (introduced & used, adjust later)
* object separator introduced (requested Cory Doctorow, implementation not discussed) * dal_syntax, object separator syntax (<:---> or <:ols>) * constants, object separator * vim syntax highlighting, match object separator * document objects: page break; object separator (introduced & used) * dal, page break and object separator objects * represent page break and object separator: plaintext, html, epub, odf, texpdf (adjust later)
Diffstat (limited to 'lib/sisu/v2/html_format.rb')
-rw-r--r--lib/sisu/v2/html_format.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/sisu/v2/html_format.rb b/lib/sisu/v2/html_format.rb
index 8074a7ee..a59f82ac 100644
--- a/lib/sisu/v2/html_format.rb
+++ b/lib/sisu/v2/html_format.rb
@@ -299,7 +299,7 @@ WOK
#{@vz.banner_band}
</td>
<td width="75%" align="center">
- #{doc_types}
+ #{doc_types}
</td>
<td width="5%" align="right">
&nbsp;#{firstseg}&nbsp;
@@ -1023,6 +1023,11 @@ WOK
end
para_form_css('p','norm')
end
+ def break
+ @txt.gsub!(/#{Mx[:br_page_new]}|#{Mx[:br_page]}/,'<hr /><br />')
+ @txt.gsub!(/#{Mx[:obj_ln_sep]}/,'<hr style="width:30%" /><br />')
+ para_form_css('p','norm')
+ end
def format(tag,attrib)
para_form_css(tag,attrib)
end