[
https://issues.apache.org/jira/browse/VELOCITY-950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17464023#comment-17464023
]
Sergiu Dumitriu commented on VELOCITY-950:
------------------------------------------
Can you try something like this:
{noformat}
#if ($xxx == "true)1
#end##
#if ($yyy == "true)1
#end##
#if ($zzz == "true)1
#end##
{noformat}
> Skipping empty lines
> --------------------
>
> Key: VELOCITY-950
> URL: https://issues.apache.org/jira/browse/VELOCITY-950
> Project: Velocity
> Issue Type: Wish
> Components: Engine
> Reporter: Ivan Galkin
> Priority: Major
>
> I need to convert text from Word to PDF using "if" (or others) construction
> of Velocity. I need to get rid of empty lines.
> Example:
> In Word it looks like:
> «#if(xxx == "true)»1«#end»
> «#if(yyy == "true)»1«#end»
> «#if(zzz == "true)»1«#end»
> If yyy == false, xxx and zzz are true in PDF we will get:
> 1
>
> 1
> But I need get it without an empty line somehow:
> 1
> 1
> Is it possible to do it with such functionality?
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]