Opened 19 years ago
Closed 18 years ago
#2423 closed defect (duplicate)
Header wiki markers are not equally rendered in 'preview' mode and once the ticket is 'saved'
Reported by: | Emmanuel Blot | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | ticket system | Version: | 0.9 |
Severity: | trivial | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When adding the header wiki syntax in a ticket description field, such as === Header ===
, the header is displayed as a standard wiki header section when the user previews it (i.e. as a undecorated text with a large font), whereas once the ticket is saved, the same header is shown as an underlined,grayed text with a normal font.
The trouble may come from the CSS definition:
In preview mode, the XHTML definition that wraps the description is as follow:
<div class="field"> <!-- ... --> <fieldset id="preview"> <legend>Comment Preview</legend> <h3 id="Test">Test</h3> </fieldset> </div>
whereas once saved and rendered, the XHTML definition becomes
<div id="changelog"> <!-- ... --> <div class="comment"><h3 id="Test">Test</h3> </div> <!-- ... --> </div>
where the following CSS definition apply:
#changelog h3 { border-bottom: 1px solid #d7d7d7; color: #999; font-size: 100%; font-weight: normal; }
In the preview mode, the previewed description is not enclosed in the <div id="changelog">
division, so the above CSS definition does not apply - which makes the rendered XHTML look different.
This will probably be solved with #2460.