Currently, in IntelliiJ, there is this fix:
"The fix escapes special symbols and surrounds result with
"IDEA-ESCAPE-START" and "IDEA-ESCAPE-END", so that's not something that
can go to Apache repo.
The problem that is solves is to distinguish line break in fdb output
that means 'fdb message finished' from line breaks that are inside
printed string var value.
For example (using Java string syntax) "myString = a \n b" (with real
line break char) becomes "myString = IDEA-ESCAPE-STARTa
bIDEA-ESCAPE-END" (without real line break char).
This is not a problem for command line fdb usage, but may be a big
problem for IDE." Alexander Doroshko from JetBrains
So, it could be integrated into FDB with minor changes.