Tab / Spaces in tables
Hi,
First off: Thanks very much for creating pod and making it available!
I've successfully created a report containing numerous tables and figures, but am stuck trying to format some of the table cells. All I'd like to do is include a leading tab in some of the cells of one column, e.g.:
|col1|col2|col3|
|X| with leading tab|Y|
|X|without leading tab|Y|
Returning '\twith leading tab' or ' with leading tab' both don't work (the leading white space appears to be stripped off.
Other variations:
- '. with leading tab' results in only a single white space between the full-stop and the text.
- '&nsbsp; text' includes the code as text.
Any suggestions?
Thanks again,
Alistair
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Appy Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Alistair Grant
- Solved:
- 2011-05-05
- Last query:
- 2011-05-05
- Last reply:
- 2011-05-05
Hi Alistair,
The POD statement "do... from" allows to insert any chunk of ODT code. So you might write something like this, in your cell:
do text
from '<text:tab/>%s' % someContentInAVar
Does it work ?
Cheers
Gaetan
Alistair Grant (akgrant0710) said : | #2 |
Hi Gaetan,
The problem with this approach is that the table is being constructed with:
do row for p in xxx()
Is there anyway to combine the two? A sort of:
do row for p from xxx()
Each element would be the odt code.
Otherwise I guess I'll have to construct the entire table as an odt
chunk - not too much trouble, but a bit of a re-write.
Thanks again,
Alistair
On 05/05/11 14:40, Gaëtan Delannay wrote:
> Your question #156089 on Appy changed:
> https:/
>
> Status: Open => Answered
>
> Gaëtan Delannay proposed the following answer:
> Hi Alistair,
> The POD statement "do... from" allows to insert any chunk of ODT code. So you might write something like this, in your cell:
>
> do text
> from '<text:tab/>%s' % someContentInAVar
>
> Does it work ?
> Cheers
> Gaetan
>
Yes you can combine POD statements the way you like. Just write a first note
"do row for p..."
then, write a second note besides the first one
"do text
from ..."
Gaetan
Alistair Grant (akgrant0710) said : | #4 |
Hi Gaetan,
Of course. Clever!
For anyone else reading this answer: It does require that the cell text
be wrapped in the appropriate tags, e.g.: '<text:p
text:style-
(Disclaimer: I'm just learning about OpenOffice, including the odt format).
Thanks for such a quick response!
Cheers,
Alistair
On 05/05/11 15:11, Gaëtan Delannay wrote:
> Your question #156089 on Appy changed:
> https:/
>
> Status: Open => Answered
>
> Gaëtan Delannay proposed the following answer:
> Yes you can combine POD statements the way you like. Just write a first note
> "do row for p..."
> then, write a second note besides the first one
> "do text
> from ..."
> Gaetan
>
Alistair Grant (akgrant0710) said : | #5 |
Thanks again for assisting so quickly!