Modify

Opened 4 years ago

Closed 4 years ago

#7384 closed defect

How to use space for option list_connector_string

Reported by: anonymous Owned by: CuriousCurmudgeon
Priority: normal Component: BatchModifyPlugin
Severity: normal Keywords:
Cc: joerg.thoennes@… Trac Release: 0.11

Description

Our keywords are seperated by space: "A B C"

Therefore, my preferred configuration for this would be:

[batchmod]
fields_as_list = keywords,customers
list_separator_regex = \s+
list_connector_string = ' '

But the space is stripped off. Tried also:

list_connector_string = ' '
list_connector_string = " "
list_connector_string = \
list_connector_string =

But all characters used as given. At least, the last variant should work but
in this case the keywords are concatenated by the empty string which breaks anything.

Suggestions

Attachments (0)

Change History (5)

comment:1 Changed 4 years ago by JThoennes

I posted this ticket before the description was complete / correctly formatted. Sorry about this.
Since I cannot change it now, please replace the description by this one:

Description

Our keywords are seperated by space: "A B C"

Therefore, my preferred configuration for this would be:

[batchmod]
fields_as_list = keywords,customers
list_separator_regex = \s+
list_connector_string = ' '

But the space is stripped off. Tried also:

list_connector_string = ' '
list_connector_string = " "
list_connector_string = \ 
list_connector_string =

But all characters used as given. At least, the last variant should work but in this case the keywords are concatenated by the empty string which breaks anything.

Suggestions

  • Provide space as default since the comma can be specified explicitely.
  • Replace empty list_connector_string by exactly one space (preferred).
  • Provide a way to escape characters (perfect, but needs more work).

comment:2 Changed 4 years ago by JThoennes

  • Cc joerg.thoennes@… added

comment:3 Changed 4 years ago by CuriousCurmudgeon

(In [9374]) refs #7384

  • Changed the default connector from a comma to a space. This change will need highlighted so users are not surprised when upgrading.

comment:4 Changed 4 years ago by CuriousCurmudgeon

  • Status changed from new to assigned

comment:5 Changed 4 years ago by CuriousCurmudgeon

  • Status changed from assigned to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.