Edgewall Software
Modify

Ticket #6630 (new defect)

Opened 4 years ago

Last modified 12 months ago

single || in a line mistaken for table formatting

Reported by: Markus.Staab Owned by: cboos
Priority: normal Milestone: 0.14-wikiengine
Component: wiki system Version:
Severity: normal Keywords: table pipe syntax
Cc:
Release Notes:
API Changes:

Description

if you write sth like

DQL still uses the CONCAT() and not the || syntax

in a svn comment, the changeset view looks like

  DQL still uses the CONCAT() and not the syntax
so trac adds <td> </td> for
. thats not correct in this case because the user wants to tell sth about the operator.

see http://trac.phpdoctrine.org/changeset/3497

Attachments

Change History

comment:1 Changed 4 years ago by eblot

  • Component changed from general to browser
  • Resolution set to worksforme
  • Status changed from new to closed

SVN log messages are interpreted as wiki syntax.

Either use verbatim blocks ({{{ }}}) or quoting (``) or disable wiki syntax for log messages: TracIni#changeset-section

comment:2 Changed 4 years ago by nkantrowitz

The one-line formatter used for those messages probably shouldn't be processing table directives though.

comment:3 Changed 4 years ago by cboos

  • Component changed from browser to wiki
  • Keywords table added
  • Milestone set to 0.12
  • Resolution worksforme deleted
  • Status changed from closed to reopened
  • Summary changed from using || in svn comments to single || in a line mistaken for table formatting

Well, probably yes, but that would only solve help while displaying it in the timeline (short form), not when visualizing the changeset. We can improve the regexp for a simple table row so that it only handles stuff like || (... ||)+ (that could still fail in some situations, but less systematically than now).

comment:4 Changed 2 years ago by cboos

  • Milestone changed from next-major-0.1X to 0.12

Now if we make the regexp treat the line as a whole, we could also probably allow the single pipe syntax:

^\s*\|(?:(?:[^|]*)\|)+\s*\\?$

(the split in cells and handling of !| being done in a second step)

One step closer to full WikiCreole compatibility ;-)

comment:5 Changed 2 years ago by cboos

  • Keywords pipe syntax added
  • Milestone changed from 0.12 to 0.13

Forgot about pipes within backticks or within {{{...}}}, this is a bit harder than I thought.

comment:6 Changed 12 months ago by cboos

  • Milestone changed from 0.13 to 0.14-wikiengine
  • Owner changed from jonas to cboos
  • Status changed from reopened to new
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from cboos. Next status will be 'new'
The owner will be changed from cboos to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.