spaces in a report

Asked by phil

In a product description, or any other text, if i put several "spaces", it doesn't appear on the associate report.

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #367772.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#1

This problem comes due to the reportlab paragraph parsing.
OpenERP sends perfect string values for parsing.

Revision history for this message
phil (philippe-tacquet) said :
#2

Yes, i saw it was fine in the database.
The problem seems to come from the RML...

  TACQUET Philippe
  19 ter rue de l'église
  Saint gilles les hauts - Réunion

  Tél:0692605947

________________________________
De : Jay (Open ERP) <email address hidden>
À : <email address hidden>
Envoyé le : Lundi, 27 Avril 2009, 18h12mn 23s
Objet : [Bug 367772] Re: spaces in a report

This problem comes due to the reportlab paragraph parsing.
OpenERP sends perfect string values for parsing.

** Changed in: openobject-server
     Assignee: gkh (Open ERP) (gkh-openerp) => (unassigned)

** Changed in: openobject-server
   Importance: Medium => High

--
spaces in a report
https://bugs.launchpad.net/bugs/367772
You received this bug notification because you are a direct subscriber
of the bug.

Status in OpenObject Server: Confirmed

Bug description:
In a product description, or any other text, if i put several "spaces", it doesn't appear on the associate report.

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) said :
#3

I convert to a question. You can use <pre>

Revision history for this message
phil (philippe-tacquet) said :
#4

I got a problem with the <pre> tag, because it's not compatible with <para>...

exemple:
          <para style="terp_default_9"><pre>[[ format(o.note or '') ]]</pre></para>
   => this doesn't work...

if i do this
      <pre>
          <para style="terp_default_9">[[ format(o.note or '') ]]</para>
 </pre>
=> it prints <para style="terp_default_9"> on the report.

How do you solve that ?
<xpre> is also not compatible.

Revision history for this message
phil (philippe-tacquet) said :
#5

Je viens d'essayer la commande
 <para style="terp_default_9">[[ format(o.note or '') ]][[setTag('para','pre')]]</para>

mais cela ne semble pas fonctionner...

Revision history for this message
phil (philippe-tacquet) said :
#6

same version in english...

I try with this code
 <para style="terp_default_9">[[ format(o.note or '') ]][[setTag('para','pre')]]</para>

but it doesn't work...

Revision history for this message
Launchpad Janitor (janitor) said :
#7

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

Revision history for this message
phil (philippe-tacquet) said :
#8

Any answers ?

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#9

As we said, its not openerp problem.

we will check with Our new report engine when its ready completely.

Sorry for the inconvenience.

Thanks.

Can you help with this problem?

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

To post a message you must log in.