[ 
https://issues.apache.org/jira/browse/VELOCITY-950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17481889#comment-17481889
 ] 

Christopher Schultz commented on VELOCITY-950:
----------------------------------------------

[~igalkin98] Just remove the completely blank line between your statements and 
the completely blank line in your output will disappear.

Likewise, if you want the newlines to disappear, then remove the newlines from 
your template. If you are desperate, then add ## to the end of each of your 
lines where you have a newline you don't want to appear in your output.

There is no bug here.

> 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: dev-unsubscr...@velocity.apache.org
For additional commands, e-mail: dev-h...@velocity.apache.org

Reply via email to