aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2012-06-25 18:06:56 (GMT)
committerAndré Erdmann <dywi@mailerd.de>2012-06-25 18:06:56 (GMT)
commitbd3de81c48d6cbc0bab375f188b4866ae91d3e37 (patch)
treed2479dd90a562b6ae144929ba54fca5a17f98761
parentadd repo-specific options to the config entry map (diff)
downloadR_overlay-bd3de81c.zip
R_overlay-bd3de81c.tar.gz
R_overlay-bd3de81c.tar.bz2
fix DescriptionNode creation in metadata
modified: roverlay/metadata/__init__.py
-rw-r--r--roverlay/metadata/__init__.py21
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