Looping with lists

Asked by Stefan Schindler

Hey,

I'm currently trying to populate a list from Python values. Unfortunately their's no section name for lists (like section, title, table, row etc.). And every workaround I tried so far hasn't worked (creating a section for each list item works, but when you put it inside a table, OpenOffice won't split the table up into multiple pages).

Is there any way to achieve this? I'd be even thankful for a dirty approach, whatever works. (deadlines, we all know this.. ;))

Question information

Language:
English Edit question
Status:
Solved
For:
Appy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Gaëtan Delannay (gaetan-delannay) said :
#2

Hi,
What do you mean by "list" ?

If you mean a bulleted list, a quick and dirty way to do it is to create a table containing 2 cells: the 1st contains the image of the bullet (or, better,, the corresponding special char), and the second will hold the content. And you repeat this through a note "do row for...".

If you want a numbered list, you can manage the number yourself, by using: do row for elem in somePythonList, and inserting Python expressions like "somePythonList.index(elem)+1".

Cheers,
Gaëtan

Revision history for this message
Gaëtan Delannay (gaetan-delannay) said :
#3

Solved.