Opened 8 years ago
Last modified 8 years ago
#12522 closed defect
Multiline option documentation is rendered as a oneliner — at Version 1
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.12 |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Option documentation such as [logging]
log_format
contains markup that should be rendered as multiple lines: tags/trac-1.0.11/trac/env.py#L241.
With a minor change, the text could be rendered as multi-line.
-
trac/htdocs/css/wiki.css
diff --git a/trac/htdocs/css/wiki.css b/trac/htdocs/css/wiki.css index 722d7c4..5434503 100644
a b div.tracini td.nodefault { 119 119 font-style: italic; 120 120 white-space: nowrap; 121 121 } 122 div.tracini td p { margin: 0 } -
trac/wiki/macros.py
diff --git a/trac/wiki/macros.py b/trac/wiki/macros.py index 450393d..8c4ff8a 100644
a b class TracIniMacro(WikiMacroBase): 807 807 format_to_html(self.env, formatter.context, section_doc), 808 808 tag.table(class_='wiki')(tag.tbody( 809 809 tag.tr(tag.td(tag.code(option.name)), 810 tag.td(format_to_ oneliner(self.env, formatter.context,811 810 tag.td(format_to_html(self.env, formatter.context, 811 option.doc)), 812 812 default_cell(option), 813 813 class_='odd' if idx % 2 else 'even') 814 814 for idx, option in
Change History (3)
by , 8 years ago
Attachment: | Screen Shot 2016-06-29 at 17.44.31.png added |
---|
by , 8 years ago
Attachment: | Screen Shot 2016-06-29 at 17.44.13.png added |
---|
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.