Revision 1297:0a574315af3e lib/redmine/export
| lib/redmine/export/pdf.rb | ||
|---|---|---|
| 109 | 109 |
RDMPdfEncoding::rdm_from_utf8(txt, l(:general_pdf_encoding)) |
| 110 | 110 |
end |
| 111 | 111 |
|
| 112 |
def formatted_text(text) |
|
| 113 |
html = Redmine::WikiFormatting.to_html(Setting.text_formatting, text) |
|
| 114 |
# Strip {{toc}} tags
|
|
| 115 |
html.gsub!(/<p>\{\{([<>]?)toc\}\}<\/p>/i, '')
|
|
| 116 |
html |
|
| 117 |
end |
|
| 118 |
|
|
| 112 | 119 |
def RDMCell(w ,h=0, txt='', border=0, ln=0, align='', fill=0, link='') |
| 113 | 120 |
Cell(w, h, fix_text_encoding(txt), border, ln, align, fill, link) |
| 114 | 121 |
end |
| ... | ... | |
| 120 | 127 |
def RDMwriteHTMLCell(w, h, x, y, txt='', attachments=[], border=0, ln=1, fill=0) |
| 121 | 128 |
@attachments = attachments |
| 122 | 129 |
writeHTMLCell(w, h, x, y, |
| 123 |
fix_text_encoding( |
|
| 124 |
Redmine::WikiFormatting.to_html(Setting.text_formatting, txt)), |
|
| 130 |
fix_text_encoding(formatted_text(txt)), |
|
| 125 | 131 |
border, ln, fill) |
| 126 | 132 |
end |
| 127 | 133 |
|
Also available in: Unified diff