Changeset 4eac427 in sasmodels


Ignore:
Timestamp:
Nov 20, 2015 3:10:38 PM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
be18d1f
Parents:
29fc2a3
Message:

fix doc build for units without special markup

Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    r3c56da87 r4eac427  
    247247""" 
    248248 
     249def format_units(par): 
     250    return RST_UNITS.get(par, par) 
     251 
    249252def make_partable(pars): 
    250253    """ 
     
    255258        max(len(p[0]) for p in pars), 
    256259        max(len(p[-1]) for p in pars), 
    257         max(len(RST_UNITS[p[1]]) for p in pars), 
     260        max(len(format_units(p[1])) for p in pars), 
    258261        PARTABLE_VALUE_WIDTH, 
    259262        ] 
     
    271274            "%-*s" % (column_widths[0], p[0]), 
    272275            "%-*s" % (column_widths[1], p[-1]), 
    273             "%-*s" % (column_widths[2], RST_UNITS[p[1]]), 
     276            "%-*s" % (column_widths[2], format_units(p[1])), 
    274277            "%*g" % (column_widths[3], p[2]), 
    275278            ])) 
Note: See TracChangeset for help on using the changeset viewer.