Skip to content

Programmable Filter/Source triple quote string add spaces

When using triple quotes string in a python programmable filter/source, supplementary spaces get added after each new lines.

eg:

str = str = """testA\ntestB"""
print(str)

Outputs:

testA
testB

while

str = str = """testA
testB"""
print(str)

Outputs:

testA
  testB

The two spaces before testB is a bug.