https://bugs.documentfoundation.org/show_bug.cgi?id=174425

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #209622|0                           |1
        is obsolete|                            |

--- Comment #2 from [email protected] ---
Created attachment 209633
  --> https://bugs.documentfoundation.org/attachment.cgi?id=209633&action=edit
Corrected minimal HWP 3.x file with one 2x2 table (A4 page, 10 pt text, table
paragraph flag set)

Thank you for testing, and sorry: the file I attached (attachment 209622) was
broken. I built it by hand and left several header fields at 0:

- page size and margins in the document info were 0, so Writer gets a
  0 x 0 cm page (PDF export of that file fails with an I/O write error);
- the character size was 0, which is imported as 1 pt;
- the "special characters" flag (ctrlflag) of the paragraph that holds the
  table was 0. HwpReader::parsePara() sends such a paragraph to
  make_text_p0()/make_text_p1(), so the table in that file never reached
  makeTextBox().

So the two lines were in the document (--convert-to txt shows them), but on a
zero-size page in 1 pt type, and the table was dropped for a reason that has
nothing to do with this bug.

I am attaching a corrected file, hwp3-table-2x2-fixed.hwp: A4 page, 10 pt
text, ctrlflag 0x400 on the table paragraph, and the table header values that
Hangul writes (cell margins, box number, cell heights).

Steps to Reproduce:
1. Open hwp3-table-2x2-fixed.hwp in Writer.

Actual Results (26.8.2.2, macOS):
"BEFORE-TABLE", then a filled blue rectangle of about 5.1 x 1.1 cm, then
"AFTER-TABLE". The rectangle is a draw:frame with a graphic style (gr1) and an
empty draw:text-box. The converted ODT has no table:table element and none of
the cell texts.

Expected Results:
A 2x2 table with CELL-A1, CELL-B1 / CELL-A2, CELL-B2 between the two lines.

This matches the Hangul-saved files listed in the description. For example,
https://raw.githubusercontent.com/edwardkim/rhwp/c9095c5f67632e6721e800ccc7fb43ea49d26682/fuzz/corpus/parse_hwp3/hwp3-table-cell-order.hwp
gives one empty 15.2 x 20.5 cm frame where a 29-cell table should be.

I have not tested a master build.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to