tallforasmurf / PPQT

A post-processing tool for PGDP written in Python, PyQt4, and Qt
GNU General Public License v3.0
4 stars 2 forks source link

Reflow of table with paras produces message #65

Closed tallforasmurf closed 11 years ago

tallforasmurf commented 11 years ago

Reflowing a /T..T/ by itself, or with a following paragraph, is fine.

Reflowing it when the selection includes a preceding text paragraph produces the error "Data in table at line </T line number> exceeds -2 / Actual width to be used is "

tallforasmurf commented 11 years ago

This follows on from the fix for Issue #54, where I started passing the current max para width to pqTable via the 'W' member of the opening work unit (because pqTable doesn't have access to the flow UI). However owing to the multiple uses of that 'W' member it got set to zero when paragraphs preceded the table, resulting in a wrong estimate of available table width.

The fix was to rather drastically rewrite the parsing section, in the course of which removed some latent bugs having to do with the skip-markup switches.