プロジェクト

全般

プロフィール

Vote #71658

完了

PDF export from Wiki - Problems with tables

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
PDF export_39
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
39
version_id:
52
issue_org_id:
10688
author_id:
28747
assigned_to_id:
11192
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
40
ステータス-->[Closed]

説明

Printed out some wiki pages with tables, and got something like this on the PDF:

!pdf_table.png!

The original table on the wiki was like this:

Sequência de Estímulos e Respostas
|Estímulo|Resposta|
|Usuário abre interface principal|Sistema apresenta tela inicial|
|Usuário define dados de entrada (tail number ou configuração da aeronave)|Sistema armazena os dados de entrada|
|Usuário escolhe opção de análise de decolagem (takeoff)|Sistema exibe tela de parâmetros para análise de decolagem|
|Usuário define aeroporto/pista de origem|Sistema valida e armazena aeroportos/pistas|

It seems like the problem on the PDF was with italic words inside the table.

Apart from that, this feature is awesome, and it´s getting better and better. Thanks guys!


journals

We have the same problem in tables that have no _italics_ or other formatting in the table, but use *bold* to create column headers and the headings become misaligned.

!redmine pdf table bold.png!

Removing the bold formatting shows correctly aligned header row, but the table width does not appear to be correct.

!redmine pdf table.png!
--------------------------------------------------------------------------------
Sorry, this tables problem is #69 patch's bug.

I corrected so that the html tag inside a table could not be used with a PDF export.

I finished tests on following environments.

* CentOS 6 CRuby 1.8.7, 1.9.2, 1.9.3
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed in trunk r9853, 2.0-stable r9854 and 1.4-stable r9855, thanks.
--------------------------------------------------------------------------------
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?

<pre><code class="ruby">
@default_table_columns ||= 4

...

if @default_table_columns < @max_table_columns[@table_id]
@table_columns = @max_table_columns[@table_id];
else
@table_columns = @default_table_columns;
end
</code></pre>
--------------------------------------------------------------------------------
Rob D wrote:
> Should this be a separate issue?
Yes.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリPDF export_39 にセット
  • 対象バージョン2.0.3_52 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0