Opened 18 years ago
Last modified 5 years ago
#1454 new defect
text/html fails from source: link
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | high | Component: | IncludeMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
The following code renders the raw text, rather than the HTML of the file listed:
[[Include(source:trunk/some_file.html, text/html)]]
Attachments (0)
Change History (9)
comment:1 Changed 18 years ago by
comment:2 Changed 17 years ago by
Priority: | normal → high |
---|
comment:3 Changed 16 years ago by
Bump to this.
I was able to use the workaround, but when setting this up for additional users, it is preferred that they can just enter the file to use from the repository.
comment:4 Changed 15 years ago by
Bump
Workaround won't work for me, since our wiki pages require login.
comment:5 Changed 14 years ago by
The workaround does not work if you need to login to view the sources and is not ideal.
The code that would probably need changing is located at
comment:7 Changed 13 years ago by
I read the following somewhere recently, and copied it into my notes for use in investigating a solution to this ticket: If you want to ensure that an HTML document gets syntax highlighted and not rendered, use the text/xml mimetype. I think it came from the Trac help documentation.
comment:8 Changed 11 years ago by
Owner: | changed from Noah Kantrowitz to Ryan J Ollos |
---|---|
Status: | new → assigned |
comment:9 Changed 5 years ago by
Owner: | Ryan J Ollos deleted |
---|---|
Status: | assigned → new |
The work-around, of course, is to use
Still, it would be nice to have this work through the
source:
reference because such a reference need not change even if the URL of the Trac server does change.