Defect #5124
open
Errors in formatting of texts 2.
Added by Mike Stupalov over 14 years ago.
Updated over 12 years ago.
Description
- inline links (urls and mailto) with leading "!" does not display correctly
(be displayed as text without a leading "!"):
- tables are not created, if at the end there is no blank line:
|1|1|1|
|1|1|1|
zc
|1|1|1|
|1|1|1|
zc
- and repeating the error mentioned in another ticket #5045:
*(100 - Ksp)/100* |
/100 |
* (100 - Ksp) /100* |
* 100 - Ksp /100* |
Mike Stupalov wrote:
strange appearance of the code block, where it should not be. Paste the text into a new wiki page and see the result:
[...]
I found when it appears:
If, after the title are empty strings, and after the text begins with a space.
- Assignee changed from Jean-Philippe Lang to Jean-Baptiste Barth
- Affected version (unused) changed from 0.9.3 to 1.0.2
- Affected version changed from 0.9.3 to 1.0.2
Taking the 4 problems your report in the same order:
- 1: I don't understand, you say we should accept "!" chars ? Can you give me source, actual behavior and desired behavior ?
- 2: it's desired behavior, it allows having code automatically put into pre/code blocks. The header display is weird because of a css ID added to the h2 tag. It could be fixed in the themes css, but I don't think it's so important, what do you think ?
- 3: don't know if it's really desired behavior, but it's the way RedCloth works for block sections, would be very difficult to change.
- 4: it's desired behavior. Parenthesis are used to specify CSS options. Imho, you should put any maths formula between two arboas signs, so that they're displayed correctly. As a workaround, you can put a dummy css class like this:
*(blah)(100 - Ksp)/100*
=> (100 - Ksp)/100
Jean-Baptiste Barth wrote:
Taking the 4 problems your report in the same order:
- 1: I don't understand, you say we should accept "!" chars ? Can you give me source, actual behavior and desired behavior ?
No, I meant: if before the link to deliver the character "!", the link shouldn't be generated and the character "!" It should not be displayed. Example:
source |
as should be |
as now |
!ya.mail@example.org |
ya.mail@example.org |
!ya.mail@example.org |
!www.example.org |
www.example.org |
!www.example.org |
- 2: it's desired behavior, it allows having code automatically put into pre/code blocks. The header display is weird because of a css ID added to the h2 tag. It could be fixed in the themes css, but I don't think it's so important, what do you think?
I think it's still not the correct behavior. This problem has arisen in the first place, after converting from wiki trac to redmine.
- 3: don't know if it's really desired behavior, but it's the way RedCloth works for block sections, would be very difficult to change.
- 4: it's desired behavior. Parenthesis are used to specify CSS options. Imho, you should put any maths formula between two arboas signs, so that they're displayed correctly. As a workaround, you can put a dummy css class like this:
*(blah)(100 - Ksp)/100*
=> (100 - Ksp)/100
In the previous ticket I've said that all of these problems can be solved by switching to a new version RedCloth (4.x)...
See #6269 about Redcloth 4 support, it has some drawbacks..
Jean-Baptiste Barth wrote:
See #6269 about Redcloth 4 support, it has some drawbacks..
Oh, yes. Will be just fine.
- Assignee deleted (
Jean-Baptiste Barth)
Also available in: Atom
PDF