Looping with lists

Asked by Stefan Schindler on 2012-08-31

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:
2012-08-31
Last reply:
2012-12-19
Launchpad Janitor (janitor) said : #1

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

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

Solved.