Contributor
Posts: 22

# ODS TEXT produces uneven spacing in PDF output using inline style

I bolded a couple words in my ODS TEXT statement, but the spacing in front of the second bolded word is larger than the spacing between other words in my text in the PDF file that I write to.

Here's my code:

``````%let InfTop1 = Rhinovirus;
%let InfTop2 = Parainfluenza;

ods text = "^{unicode 25cf} ^{style[font_weight=bold]&InfTop1} was the most frequently identified respiratory viral pathogen followed by ^{style[font_weight=bold]&InfTop2}.";``````

And here's my output (attached) in the PDF. The space before the word Parainfluenza is about twice as large as the spaces between the other words on the line. Any suggestions on how to fix this?

Super User
Posts: 13,581

## Re: ODS TEXT produces uneven spacing in PDF output using inline style

Posted in reply to bnawrocki

Try not putting spaces between the style definitions and the actual text. You are applying the style to the SPACE and a bolded space takes up more room than non-bold. You may also be getting a space after the unicode character

Contributor
Posts: 22

## Re: ODS TEXT produces uneven spacing in PDF output using inline style

Yes, I already tried that, and it didn't make any difference.

Super User
Posts: 13,581

## Re: ODS TEXT produces uneven spacing in PDF output using inline style

Posted in reply to bnawrocki

Which PDF viewer are you using?

When I run your code and look at it with Adoby Acrobat Pro DC or PDF Exchange editor I actually don't see any space before the Parainfluenza text.

Contributor
Posts: 22