Opened 3 years ago
Last modified 3 years ago
#13355 closed defect
incomplete inline markup within table cell generates malformed html — at Initial Version
Reported by: | Jun Omae | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 1.4.3 |
Component: | wiki system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
(originally reported at th:#13959)
>>> import trac >>> trac.__version__ '1.4.2' >>> from trac.mimeview.api import RenderingContext >>> from trac.resource import Resource >>> from trac.test import EnvironmentStub >>> from trac.test import MockRequest >>> from trac.wiki.formatter import Formatter, format_to_html >>> resource = Resource('wiki', 'WikiStart') >>> env = EnvironmentStub() >>> req = MockRequest(env) >>> context = RenderingContext(resource, req.href, req.perm) >>> context.req = req >>> print(format_to_html(env, context, '|| text^1 ||')) <table class="wiki"> <tr><td> text<sup>1 </td></tr></table> </sup> >>> print(format_to_html(env, context, '|| text^1^ ||')) <table class="wiki"> <tr><td> text<sup>1</sup> </td></tr></table> >>> print(format_to_html(env, context, '|| text**1 ||')) <table class="wiki"> <tr><td> text<strong>1 </td></tr></table> </strong> >>> print(format_to_html(env, context, '|| text**1** ||')) <table class="wiki"> <tr><td> text<strong>1</strong> </td></tr></table> >>>
Change History (1)
Note:
See TracTickets
for help on using tickets.