On 2003.06.11 09:59, Tim Waugh wrote:
> On Wed, Jun 11, 2003 at 09:52:06AM -0500, Alex Roitman wrote:
> > This is the minimal way to do it from the report:
> > cell = TextDoc.TableCellStyle()
> > self.doc.add_cell_style('Normal',cell)
> > This would produce a default cell and it would appear in all
> > formats, not only HTML.
> That's what I tried, but in HTML output in particular I don't see the
> styles written out. Try a Complete Individual report, for instance,
> and look for NormalCell. Is this an HtmlDoc.py bug?
As a matter of fact, I cannot create a Complete Individual report with
the current CVS -- it complains about relationship loops no matter whom
I choose as a center person.
Although, the exact same thing produces correct cells in the FTM style
descendant report. Here's the HTML excerpt:
<td valign="top" width="10%" class="Normal"><p class="Details">2.</p>
<td valign="top" width="5%" class="Normal"><p class="Details">i.</p>
<td valign="top" width="85%" class="Normal"><p class="Details">Mason
Michael Smith was born June 26, 1996 in Hayward, Alameda Co., CA.</p>
The only problem is that the "style" section does not contain "Normal"
-- you're right, this has to be recorded.
I am not sure if this is an HTML-only bug:
* Apparently, abiword writes cells without reference to the cell style
name -- it just records all the cell properties every time the cell
* OOo has the same problem as HTML.
* LaTeX does not have the problem since it has no style for cells.
So it seems that, at least, HTML and OOo should record the definition
of the cell styles in the style section of the doc.
Don, do you agree?
Alexander Roitman http://ebner.neuroscience.umn.edu/people/alex.html
Dept. of Neuroscience, Lions Research Building
2001 6th Street SE, Minneapolis, MN 55455
Tel (612) 625-7566 FAX (612) 626-9201