Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#8795 closed defect (worksforme)

wiki table formatting broken

Reported by: Robert Rossmair <r.rossmair@…> Owned by:
Priority: normal Milestone:
Component: wiki system Version: 0.12dev
Severity: normal Keywords:
Cc: r.rossmair@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I just updated my trac installation (was some earlier Trac 0.12 release) to Trac 0.12multirepos-r8747. To my dismay, table formatting is now seriously messed up when empty cells are present. Look at this:

table containing empty cells; non-empty cells are filled with (<row>, <column>) text:

(1, 3)
(2, 1)(2, 2)
(3, 1)(3, 3)

same table, but "empty" cells now each contain a space character:

(1, 3)
(2, 1)(2, 2)
(3, 1) (3, 3)

What makes this worse is that the WYSIWYG-Plugin (the only means to reasonably deal with complex tables) will remove space characters from table cells if they are not enclosed by printable characters.

The attached image file shows how the above table source code appears on my system.

Attachments (1)

WikiTableFormattingBroken.PNG (9.5 KB ) - added by Robert Rossmair <r.rossmair@…> 15 years ago.

Download all attachments as: .zip

Change History (6)

by Robert Rossmair <r.rossmair@…>, 15 years ago

comment:1 by Remy Blank, 15 years ago

Resolution: worksforme
Status: newclosed

Yes, this is by design. Having more than one separator || without at least a space in-between makes the following cell span more columns. See #1293 and [8698] for more details.

comment:2 by Robert Rossmair <r.rossmair@…>, 15 years ago

I see. Two problems with that: It's not backward compatible, and, more serious, the TracWysiwygPlugin, even in its latest revision, uses the old syntax. This makes it impractical to handle complex tables.

Suggestion: Make an ini-Option to handle it the old way.

Personally, I'll switch back to a revision without this feature.

in reply to:  2 ; comment:3 by Remy Blank, 15 years ago

Replying to Robert Rossmair <r.rossmair@…>:

It's not backward compatible

That's the trouble with progress: you sometimes have to break something to be able to move forward.

the TracWysiwygPlugin, even in its latest revision, uses the old syntax. This makes it impractical to handle complex tables. Suggestion: Make an ini-Option to handle it the old way.

No, sorry, we just can't add a new configuration option for every new feature that could possibly break a plugin. Other suggestion: fix the TracWysiwygPlugin. This is probably quite easy, as the only change required is to add a space in empty cells. That change would even be backward-compatible with 0.11.

This is not meant to be an attempt to move the blame to somebody else. We have broken backward compatibility to some extent with this change. But it's the price to pay if we want to keep Trac moving. Moreover, this is a good opportunity to integrate the new WikiFormatting functionalities into the plugin: column-spannig cells (#1293) and header cells (#3347).

in reply to:  3 comment:4 by Robert Rossmair <r.rossmair@…>, 15 years ago

That's the trouble with progress: you sometimes have to break something to be able to move forward.

the TracWysiwygPlugin, even in its latest revision, uses the old syntax. This makes it impractical to handle complex tables. Suggestion: Make an ini-Option to handle it the old way.

No, sorry, we just can't add a new configuration option for every new feature that could possibly break a plugin.

OK, I understand that.

Other suggestion: fix the TracWysiwygPlugin. This is probably quite easy, as the only change required is to add a space in empty cells. That change would even be backward-compatible with 0.11.

When my workload has sunk to a bearable level, I'll consider that.

Ciao.

comment:5 by Christian Boos, 15 years ago

Changes documented in 0.12/WikiFormatting@2.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.