diff options
author | André Erdmann <dywi@mailerd.de> | 2012-06-25 20:06:56 +0200 |
---|---|---|
committer | André Erdmann <dywi@mailerd.de> | 2012-06-25 20:06:56 +0200 |
commit | bd3de81c48d6cbc0bab375f188b4866ae91d3e37 (patch) | |
tree | d2479dd90a562b6ae144929ba54fca5a17f98761 | |
parent | add repo-specific options to the config entry map (diff) | |
download | R_overlay-bd3de81c.tar.gz R_overlay-bd3de81c.tar.bz2 R_overlay-bd3de81c.zip |
fix DescriptionNode creation in metadata
modified: roverlay/metadata/__init__.py
-rw-r--r-- | roverlay/metadata/__init__.py | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/roverlay/metadata/__init__.py b/roverlay/metadata/__init__.py index 8d94325..3385119 100644 --- a/roverlay/metadata/__init__.py +++ b/roverlay/metadata/__init__.py @@ -40,25 +40,22 @@ class MetadataJob ( object ): max_textline_width = roverlay.config.get ( 'METADATA.linewidth', 65 ) - have_desc = False + # FIXME/TODO remove long/not long bool from DescriptionNode! - if 'Title' in desc_data: + if 'Description' in desc_data: + # !passing have_desc for DescriptionNode's is_long parameter redirects + # !the second description info into <longdescription.../> mref.add ( nodes.DescriptionNode ( - desc_data ['Title'], - is_long=have_desc, + desc_data ['Description'], + is_long=True, linewidth=max_textline_width ) ) - have_desc = True - - if 'Description' in desc_data: - # passing have_desc for DescriptionNode's is_long parameter redirects - # the second description info into <longdescription.../> + elif 'Title' in desc_data: mref.add ( nodes.DescriptionNode ( - desc_data ['Description'], - is_long=have_desc, + desc_data ['Title'], + is_long=True, linewidth=max_textline_width ) ) - have_desc = True # these USE flags are described in profiles/use.desc, # no need to include them here |