Actions
Defect #7846
closedHeaders (h1, etc.) containing backslash followed by a digit are not displayed correctly
Start date:
2011-03-12
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Wiki page titles containing backslashes followed by a digit are not rendered properly because of the way String.gsub
handles specifically this sequence with Ruby 1.8 (1.9 changed this behavior).
From Ruby String.gsub
doc :
However, the sequences \1, \2, and so on may be used to interpolate successive groups in the match.
I made a patch.
Files
Updated by Jean-Philippe Lang over 13 years ago
Would be nice to add a test to TextileFormatterTest
.
Updated by Etienne Massip over 13 years ago
- File textile_header_with_backslash_and_digit.patch textile_header_with_backslash_and_digit.patch added
- Subject changed from Wiki page titles containing backslash followed by a digit are not displayed correctly to Headers (h1, etc.) containing backslash followed by a digit are not displayed correctly
- Category changed from Wiki to Text formatting
Here's the patch with test.
Updated by Etienne Massip over 13 years ago
- File deleted (
wiki_page_title_with_backslash_and_digit.patch)
Updated by Jean-Philippe Lang over 13 years ago
- Status changed from New to Resolved
- Target version changed from Candidate for next minor release to 1.1.3
- Resolution set to Fixed
Patch applied in r5100, thanks. Just fixed the space before parenthesis in #assert_html_output
.
Updated by Jean-Philippe Lang over 13 years ago
- Status changed from Resolved to Closed
Actions