You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
5
5
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
7
+
## [6.0.2] - 2025-03-07
8
+
9
+
### Added
10
+
- Added new --escapenewline or -enl option in lookup creation, edition and deletion. It will escape with
11
+
double backslash any new line char found inside a csv field.
Copy file name to clipboardExpand all lines: docs/sender/lookup.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -257,3 +257,24 @@ To see an example for the lookup configuration please refer to the one shown at
257
257
This will escape ALL double quotes in the field value by adding a second double quote to it.
258
258
259
259
The default behavior is to NOT escape any double quotes.
260
+
261
+
#### New line chars in the field value
262
+
263
+
Any new line char inside the field value can cause trouble when creating the lookup if this is not escaped.
264
+
An example of this case can be seen below:
265
+
266
+
```python
267
+
lookup.send_data_line(key_index=0, fields=["11", 'new lines\n must be escaped'])
268
+
```
269
+
270
+
That lookup creation will fail because that new line char quote may create null fields. To avoid this, add `"escape_newline": true` to the lookup configuration file and `escape_newline=True` to the `Lookup` constructor. Below, an example for the constructor is shown:
0 commit comments