-
Bug
-
Resolution: Fixed
-
Low
-
2.10.3, 3.0
Bug Background
- Some macros with a very long text within it will not be wrapped if they are within a table
- As a result, the page becomes too wide with scrollbars to scroll the page.
- The long text inside the macros should be within the macro with scrollbar to scroll the text or wrapped if possible.
- This behaviour applies to macros such as {code} {noformat}, {panel}, {info}, {quote} and possibly other macros
- This behaviour is exhibited in the Left Navigation Theme as well as when using the Navigation Sidebar because of the use of tables.
- Here is a sample code that you can try to demonstrate the behaviour:
h3. Macros within table {html} <table> <tr> <td> {html} \{code:title=Code Macro} this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. \{code} {panel:title=Panel} this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. {panel} {noformat:title=Noformat} this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. {noformat} {info:title=Info} this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. {info} {html} </td> </tr> </table> {html} h3. Macros outside table \{code:title=Code Macro} this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. \{code} {panel:title=Panel} this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. {panel} {noformat:title=Noformat} this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. {noformat} {info:title=Info} this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. {info}
- This is the screenshot for the above code
Workaround
- As a workaround, Administrator can define a Custom HTML that has this code in the "At end of the HEAD" section:
<style> .code, .preformatted { width: 50%; } .panelContent pre { overflow-x: scroll; } </style>
- This workaround is applicable to only {code} and {noformat} macro.
- is related to
-
CONFSERVER-22007 Long text without space is truncated in panel, info, warning macros
- Closed
- relates to
-
CONFSERVER-10697 Code macro should wrap
- Closed