Changeset 9910 for main/waeup.kofa/trunk/src/waeup/kofa/browser
- Timestamp:
- 24 Jan 2013, 10:34:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py
r9657 r9910 41 41 NORMAL_STYLE = getSampleStyleSheet()['Normal'] 42 42 43 #: A reportlab paragraph style for 'normal' output. 44 HEADING3_STYLE = getSampleStyleSheet()['Heading3'] 45 46 #: A reportlab paragraph style for headings. 47 HEADING_STYLE = ParagraphStyle( 48 name='Heading3', 49 parent=HEADING3_STYLE, 50 fontSize=11, 51 ) 52 43 53 #: A reportlab paragraph style for output of 'code'. 44 54 CODE_STYLE = ParagraphStyle( … … 47 57 fontName='Courier', 48 58 fontSize=10, 59 leading=10, 49 60 ) 50 61 … … 53 64 name='Entry1', 54 65 parent=NORMAL_STYLE, 55 fontSize=12, 66 fontSize=11, 67 leading=10, 56 68 ) 57 69 … … 60 72 name='Small1', 61 73 parent=NORMAL_STYLE, 62 fontSize= 10,74 fontSize=8, 63 75 ) 64 76 … … 68 80 parent=NORMAL_STYLE, 69 81 fontName='Helvetica-Bold', 70 fontSize=1 2,82 fontSize=10, 71 83 ) 72 84 … … 76 88 parent=NORMAL_STYLE, 77 89 fontName='Helvetica', 78 fontSize=1 2,90 fontSize=10, 79 91 ) 80 92 … … 285 297 f_label = translate(widget.label.strip(), domain, 286 298 target_language=lang) 287 f_label = Paragraph( f_label, ENTRY1_STYLE)299 f_label = Paragraph('%s:' % f_label, ENTRY1_STYLE) 288 300 f_text = translate(widget(), domain, target_language=lang) 289 301 f_text = format_html(f_text) … … 304 316 305 317 # Create table 306 table = Table(table_data,style=table_style) 318 table = Table(table_data,style=table_style) #, rowHeights=14) 307 319 table.hAlign = 'LEFT' 308 320 return table
Note: See TracChangeset for help on using the changeset viewer.