Links like http://localhost:port/ get rendered incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Fix Released
|
Medium
|
todd |
Bug Description
Problem:
When I enter a link with a URL like http://
this URL is rendered as http://
The problem is caused by
SilvaDocument\
This method should return on line 309 after the URL matches the URL_PATTERN.
However, this pattern doesn't anticipate URLs like http://
The root cause of the problem is that the URL_PATTERN (line 23) wrongly doesn't match a correct url like http://
URL_PATTERN = r'(((http|
I've added the part '(http|
URL_PATTERN = r'(((http|
As I'm not a regex crack, possibly this could made more efficient.
Changed in silva: | |
assignee: | nobody → todd-infrae |
importance: | Undecided → Medium |
milestone: | none → 2.1 |
Hi Benno(?),
I applied the new regex URL_PATTERN to SilvaDocument-2.1 branch. We should be releasing it soon but I want to confer with Sylvain who may have more changes to add to the release. I've also added a new test to SilvaDocument test_mixedconte ntsupport. py that gives you direct access to the link building method.
Todd