Home
Analytics
huge spaces between paragraphs
BorisP
Hello everybody,
I use Text-Items to display HTML that comes from a database.
The HTML-Code is divided into paragraphs using <p>-Tags. The paragraph spacing seems to be much too big by default. I'm hardly searching for a way to change this.
Does anyone know a possibility to change the paragraph spacing?
I added an example screenshot of a simple report using html-paragraphs.
Thanks in advance.
Boris
Find more posts tagged with
Comments
mwilliams
Hi Boris,
What version of BIRT are you using? How HTML text is handled has probably changed over the versions a little, so if you're using an older version, you might try a newer version. Let me know.
BorisP
Thanks for your reply!
At the moment I'm using Birt 2.2.2. Our Framework doesn't support other versions.
Do you know problems like these? Do you think that the problem is solved after an update?
I prefer a solution possible by modeling.
BorisP
I tested version 2.3.1 outside our Framework. Same behavior.<br />
<br />
Simple Test: empty Report, add a "Text item" with option "HTML" and add the following code snippet:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'><p>Paragraph one</p>
<p>Paragraph two<br/>with two lines</p>
<p>Paragraph three</p></pre>
--> you will get the same as in my screenshot<br />
<br />
I tried to embed CSS without success. Any ideas? (no way to change the sources
)
mwilliams
I don't see this issue in any version of BIRT when I run it in HTML. Are you using a different output, like PDF or something? Maybe that's why I'm not seeing the same.
mwilliams
Nevermind. I see it was PDF. In 2.5.1, I was able to remove some of the <p> or </p> tags and it reduced the spacing to look correctly. This obviously isn't the ideal fix. Something isn't working right with the PDF emitter and the html tags. It's gotten better in newer versions, it looks like, but not perfect. You can always log a bug report at
http://www.birt-exchange.org/org/resources/bug-reporting/
kik007
Hello,
i have installed versin 3.7.1. an the issue still exists. I opend a BUG for it.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=365567
cheers, Kai
mwilliams
Thanks for the update!
heavyw8
<p>Is there anything new on this topic?? I'm currently faceing the same problem in the current BIRT version.</p>
JFreeman
<p>Based on the submitted bug report, it looks like this issue will still exist.</p>
<p>I think the best option is to workaround the issue by using something other than paragraph tags.</p>