Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
spaces in record are not printing
HSMorales
I have a dataset with 3 records. one field has data such as:
' Vendor Part Number 106B'
' Vendor State Texas'
' Account Number'
I have left aligned the field in the detail section of the report.
When I print the report, the spaces are ignored and all three fields line up on the left.
If I do a 'Preview Results' in the dataset, I can see the spaces at the begining of each record.
I tried using Substr function starting at 0, but it still ignores the spaces.
What Do I need to do ???
Thanks
Birt 3.7.0
Find more posts tagged with
Comments
kclark
Can you recreate this with the sample db and post it on here for me to look at?
Tubal
I believe this is an HTML issue. It doesn't care about whitespace at the beginning or end of an element.<br />
<br />
The way I've gotten around this in the past was to either use the pading attribute on the left side of the cell I needed indented, or to change the element to an html text element and replacing the leading spaces with a non-breaking space html code in my query.<br />
<br />
<blockquote class='ipsBlockquote' ><p>Non-breaking Space<br />
<br />
A common character entity used in HTML is the non-breaking space ( ).<br />
<br />
Browsers will always truncate spaces in HTML pages. If you write 10 spaces in your text, the browser will remove 9 of them, before displaying the page. To add spaces to your text, you can use the character entity.</p></blockquote>
<br />
<a class='bbc_url' href='
http://www.w3schools.com/html/html_entities.asp'>http://www.w3schools.com/html/html_entities.asp</a>
;