Tab in Texts

Asked by Dolgener on 2012-09-26

New to POD, I just can't figure out how to encode a horizontal tab.
Neither '<text:tab/>' (as found in 156089) nor '\t' seems to do the job.

replacement = {'record': 'Doe, Joe\t0815'}
renderer = Renderer('my_template.odt', replacement, 'my_list.odt')

would be a simple example.
Actual result is "Doe, Joe 0815" (just a space instead of \t).

Any hints?

Question information

Language:
English Edit question
Status:
Answered
For:
Appy Edit question
Assignee:
No assignee Edit question
Last query:
2012-09-26
Last reply:
2012-10-01

Hi,
You could solve this issue by inserting the complete paragraph in a "do xxx from..." clause (in a note):

do text
from xhtml('<text:p>%s</text:p' % record.replace('\t', '<text:tab/>'))

I will try to think about a simpler way to handle this problem...
Cheers,
Gaetan

Can you help with this problem?

Provide an answer of your own, or ask Dolgener for more information if necessary.

To post a message you must log in.