Mark:
Right click on the text box and select Dynamic Story Properties >
Suppress trailing spaces on empty content
Or, program your new lines at the end of the object and test if it is
blank first
Hope this helps
George
I'm not convinced the country is totally blank - you could apply a
trim to the field and then test it is empty before printing the value.
Assume you are using uDirect in InDesign rather than uPlan? Give me a
shout if you need some guidance on how to do this.
> Also I did not understand your last point
>
>> Or, program your new lines at the end of the object and test if it is
>> blank first
>
> Are you saying to use an expression in the logic component that
> generates a return as needed (in the InDesign document all the ADORs
> would be on one line and expanded to multiple line by the evaluation
> of the ADOR)?
Yes, but only in sections that are dynamic and you need to have easy
suppression. The downside of the Suppress Trailing Spaces ... option
is that if you have different paragraph styles they get mixed up when
you suppress the paragraphs. So if you want to have a bullet appear at
the end of a bulleted-styled list you insert the ADOR before the last
paragraph mark, program a \r at the start of the bullet and this
activates a new para in InDesign and gives it a bullet. If you tried
the normal way of inserting it as a paragraph-styled bullet and then
hide the ADOR via Suppress Trailing Spaces then the next paragraph
*after* the bullet you'd suppressed would pick up the style, and keep
it even when the ADOR reappears.
So the only method I have now is to use only character styles with one
para style/leading, and put them all in one line, programming hard
line returns (very old school). Not the easiest to work with, or
explain to a client when the proof set is off but it works. You can
use nested composition in tagged text files but this is very slow.
Let me know if you have any issues and I'll try to knock up an example file.
Cheers
George.
If all the ADORs have a value, the centering spans five lines
Name<CR>
Addr1<CR>
Addr2<CR>
CSZ<CR>
Country#
If all the Addr2 and Country are empty, the centering spans four lines
Name<CR>
Addr1<CR>
CSZ<CR>
#
Ideally I would want uCreate to "float" the end of input "#" up and replace
the last hard return. This would center three lines in the vertical space
not four like it is doing now. I can make it happen by putting all the ADORs
on one line and have program logic to trigger the inclusion of the returns,
but it is A LOT of extra work.
In a previous life, I worked with Creo's Darwin product and it would handle
this like I described.
-Mark
-Mark
What about
if(|->[Country]="") { "" } else { "\n" & |->[Country] }
Then put Country on the same line as CSZ?
You don't need to do every line ... and if you have uPlan you can
easily write a function to do this for addresses. Or make your address
box have no padding and just add a line return before the first line
to show when no Country ... unfortunately this software doesn't always
work the way you expect it to and being flexible is more productive
than getting annoyed in my experience. Wait till you need to add bleed
to a spread ...