Ticket #3232 (new defect)
Wiki syntax should be enforced (for ticket comments)
| Reported by: | eblot | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.13 |
| Component: | wiki system | Version: | devel |
| Severity: | normal | Keywords: | parser |
| Cc: | dserodio@… |
Description
When the wiki syntax is not valid (missing closing tag, for example: ''italic'), Trac does not fix it up.
Although this is not a strong issue with Wiki pages that can be edited and fixed by human beings, it starts to become an issue with ticket comments: the missing wiki tag - which is translated to an XHTML missing tag - propagates across the whole ticket and may corrupt the whole page.
As ticket comments cannot be edited, the only current way to recover from such a simple user mistake is to tweak the SQL DB ;-(
IMHO, Trac should ensure that such an error does not propagate outside a comment, i.e. should always close any open tag along with the end of a comment.
It is worth noting that when post-commit hooks are used -such as the one from the /contrib dir- the user may not even notice than "his" wiki syntax is not correct, as it is never rendered from his subversion client (commit message).


