How can I include the EOLN in a conditional formatting #376
Answered
by
axunonb
DavidThielen
asked this question in
Q&A
-
Hi all; I have the following as part of my text for SmartFormat:
I also tried:
It does great on the cond only showing the line if ShowAddress is true. But if ShowAddress is false, I get 2 blank lines. And I want the lines spread out, with a blank line between each, if both conditions are true. How can I accomplish this? thanks - dave |
Beta Was this translation helpful? Give feedback.
Answered by
axunonb
Feb 18, 2024
Replies: 1 comment 2 replies
-
ps - this is a really useful library. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, currently I'm on vacation and limited to a mobile device.
I read
EOLN
as the carriage-return character. You can use it in the format string by using the\n
text literal.But in your code, the the blank lines come from the new lines outside of the placeholders. Put them in one line and use the
\n
as a text literal for a blank line.Hope this helps.