Edgewall Software

Opened 8 years ago

Last modified 8 years ago

#12522 closed defect

Multiline option documentation is rendered as a oneliner — at Initial Version

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

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 {  
    119119 font-style: italic;
    120120 white-space: nowrap;
    121121}
     122div.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):  
    807807             format_to_html(self.env, formatter.context, section_doc),
    808808             tag.table(class_='wiki')(tag.tbody(
    809809                 tag.tr(tag.td(tag.code(option.name)),
    810                         tag.td(format_to_oneliner(self.env, formatter.context,
    811                                                   option.doc)),
     810                        tag.td(format_to_html(self.env, formatter.context,
     811                                              option.doc)),
    812812                        default_cell(option),
    813813                        class_='odd' if idx % 2 else 'even')
    814814                 for idx, option in

Change History (2)

by Ryan J Ollos, 8 years ago

by Ryan J Ollos, 8 years ago

Note: See TracTickets for help on using tickets.