fun setBlobWithFixedNewlines()

in dnq-transient-store/src/main/kotlin/com/jetbrains/teamsys/dnq/association/PrimitiveAssociationSemantics.kt [175:185]


    fun setBlobWithFixedNewlines(e: Entity, blobName: String, blobString: String?): Comparable<*>? {
        val txnEntity = e.reattachTransient()
        return if (blobString == null) {
            txnEntity.deleteBlob(blobName)
            blobString
        } else {
            val fixed = if (blobString.indexOf('\r') >= 0) blobString.replace("\r", "") else blobString
            txnEntity.setBlobString(blobName, fixed)
            fixed
        }
    }