ezdxf icon indicating copy to clipboard operation
ezdxf copied to clipboard

``Insert.add_auto_attribs`` breaks multi-line attributes.

Open gswifort opened this issue 3 months ago • 0 comments

Describe the bug I have defined a block with a multi-line attribute. After inserting a reference to the block and calling .add_auto_attribs() the multi-line attributes change to single-line.

To Reproduce Version1.3.4

import ezdxf


def main():
    doc = ezdxf.readfile("test.dxf")
    print(doc.dxfversion)  # AC1032
    msp = doc.modelspace()
    obj = msp.add_blockref("TEST", (0, 0))
    obj.add_auto_attribs({"ATTR": "10"})
    doc.saveas("test2.dxf")


if __name__ == "__main__":
    main()

Screenshots

  • test.dxf image
  • test2.dxf image

gswifort avatar Oct 31 '24 12:10 gswifort