#662 closed Defect (fixed)
Problem with code/quote BBCodes in lists
Reported by: | Thyme Lawn | Owned by: | davea |
---|---|---|---|
Priority: | Minor | Milestone: | Undetermined |
Component: | Web - Forums | Version: | |
Keywords: | Cc: |
Description
If a list item starts with a multiple line code or quote BBCode directive it isn't handled correctly. The special formatting is only applied to the first line, with all subsequent lines being formatted with just the list item indent. In addition, when you do a post preview everything after the first broken line appears outside the preview box, giving the impression that the post has been truncated.
Change History (9)
comment:1 Changed 17 years ago by
comment:2 Changed 17 years ago by
Summary: | Problem with code/qoute BBCodes in lists → Problem with code/quote BBCodes in lists |
---|
Fixed typo in title.
comment:3 Changed 16 years ago by
Unfortunately there's no simple way (afaik) to solve the problem of matching this with regex without using either recursion or a pushdown automaton. Think about nested lists of lists and the confusion this would give...
We can instead blame the BBCode people for making a badly designed standard without end-tags for list items and ignore the problem entirely since </li> is also optional in HTML 4.01 transitional.
comment:5 Changed 16 years ago by
comment:6 follow-up: 8 Changed 16 years ago by
BTW, say "Fixes #662" in the commit message to make Trac automatically close the ticket (it seems to allow six different spellings and even multiple ticket numbers separated by "and", but not the word "ticket" in the middle).
comment:7 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:8 follow-up: 9 Changed 16 years ago by
Replying to Nicolas:
BTW, say "Fixes #662" in the commit message to make Trac automatically close the ticket (it seems to allow six different spellings and even multiple ticket numbers separated by "and", but not the word "ticket" in the middle).
ticket_prefix = '(?:#|(?:ticket|issue|bug)[: ]?)'
Seems you are right, pretty much the only syntax which isn't allowed is "ticket #xxx".
I did some more tests (replies in the forum thread).
I think it would need quite a rewrite of the bbcode conversion code to fix this...