https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292012-06-14T01:54:31ZRedmineRedmine - Defect #10688: PDF export from Wiki - Problems with tableshttps://www.redmine.org/issues/10688?journal_id=389942012-06-14T01:54:31ZRob D
<ul><li><strong>File</strong> <a href="/attachments/7756">redmine pdf table bold.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7756/redmine%20pdf%20table%20bold.png">redmine pdf table bold.png</a> added</li><li><strong>File</strong> <a href="/attachments/7757">redmine pdf table.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7757/redmine%20pdf%20table.png">redmine pdf table.png</a> added</li></ul><p>We have the same problem in tables that have no <em>italics</em> or other formatting in the table, but use <strong>bold</strong> to create column headers and the headings become misaligned.</p>
<p>!redmine pdf table bold.png!</p>
<p>Removing the bold formatting shows correctly aligned header row, but the table width does not appear to be correct.</p>
<p>!redmine pdf table.png!</p> Redmine - Defect #10688: PDF export from Wiki - Problems with tableshttps://www.redmine.org/issues/10688?journal_id=390902012-06-17T12:35:39ZJun NAITOH
<ul><li><strong>File</strong> <a href="/attachments/7779">tcpdf.rb_table_with_html_fix_r9852.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7779/tcpdf.rb_table_with_html_fix_r9852.diff">tcpdf.rb_table_with_html_fix_r9852.diff</a> added</li><li><strong>File</strong> <a href="/attachments/7780">wiki_test_sample_table.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7780/wiki_test_sample_table.txt">wiki_test_sample_table.txt</a> added</li></ul><p>Sorry, this tables problem is <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Textilized description in PDF (Closed)" href="https://www.redmine.org/issues/69">#69</a> patch's bug.</p>
<p>I corrected so that the html tag inside a table could not be used with a PDF export.</p>
<p>I finished tests on following environments.</p>
<ul>
<li>CentOS 6 CRuby 1.8.7, 1.9.2, 1.9.3</li>
</ul> Redmine - Defect #10688: PDF export from Wiki - Problems with tableshttps://www.redmine.org/issues/10688?journal_id=390912012-06-17T12:40:07ZToshi MARUYAMA
<ul><li><strong>Assignee</strong> set to <i>Toshi MARUYAMA</i></li></ul> Redmine - Defect #10688: PDF export from Wiki - Problems with tableshttps://www.redmine.org/issues/10688?journal_id=390922012-06-17T13:07:07ZToshi MARUYAMA
<ul><li><strong>Target version</strong> set to <i>2.0.3</i></li></ul> Redmine - Defect #10688: PDF export from Wiki - Problems with tableshttps://www.redmine.org/issues/10688?journal_id=390932012-06-17T13:52:09ZToshi MARUYAMA
<ul><li><strong>File</strong> <a href="/attachments/7782">before.pdf</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7782/before.pdf">before.pdf</a> added</li><li><strong>File</strong> <a href="/attachments/7783">after.pdf</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/7783/after.pdf">after.pdf</a> added</li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed in trunk <a class="changeset" title="fix PDF export tables problems (#10688) Contributed by Jun NAITOH." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/9853">r9853</a>, 2.0-stable <a class="changeset" title="Merged r9853 from trunk (#10688) fix PDF export tables problems. Contributed by Jun NAITOH." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/9854">r9854</a> and 1.4-stable <a class="changeset" title="Merged r9853 from trunk (#10688) fix PDF export tables problems. Contributed by Jun NAITOH." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/9855">r9855</a>, thanks.</p> Redmine - Defect #10688: PDF export from Wiki - Problems with tableshttps://www.redmine.org/issues/10688?journal_id=390962012-06-18T05:02:05ZRob D
<ul></ul><p>Thanks guys, formatting seems to be fixed. However, the table width still doesn't fill the page width. A table with 2 columns only fills half the page width. Should this be a separate issue? Is there any reason that we need to have a minimum of 4 columns in the layout?</p>
<pre><code class="ruby syntaxhl"><span class="vi">@default_table_columns</span> <span class="o">||=</span> <span class="mi">4</span>
<span class="o">...</span>
<span class="k">if</span> <span class="vi">@default_table_columns</span> <span class="o"><</span> <span class="vi">@max_table_columns</span><span class="p">[</span><span class="vi">@table_id</span><span class="p">]</span>
<span class="vi">@table_columns</span> <span class="o">=</span> <span class="vi">@max_table_columns</span><span class="p">[</span><span class="vi">@table_id</span><span class="p">];</span>
<span class="k">else</span>
<span class="vi">@table_columns</span> <span class="o">=</span> <span class="vi">@default_table_columns</span><span class="p">;</span>
<span class="k">end</span>
</code></pre> Redmine - Defect #10688: PDF export from Wiki - Problems with tableshttps://www.redmine.org/issues/10688?journal_id=391072012-06-18T09:27:01ZJun NAITOH
<ul></ul><p>Rob D wrote:</p>
<blockquote>
<p>Should this be a separate issue?</p>
</blockquote>
<p>Yes.</p>