Modify

Opened 5 years ago

Closed 4 years ago

#6363 closed enhancement (wontfix)

Add option to wrap words greater in length than specified columns

Reported by: rjollos Owned by: pacopablo
Priority: normal Component: EmailProcessorMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I've noticed that the EmailProcessorMacro does not break words that are greater in length than the specified number of columns. One common scenario is when a product key is contained in an email. For example,

Email from Company Y.

Here is the product key for product X:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

I can imagine scenarios in which one would want such a line to wrap, and some in which one would not. Perhaps it would be worthwhile to have an option to specify word wrap?

I could work on implementing such an author, but was hoping to get some feedback from the plug-in author.

Thanks.

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by rjollos

The suggested option along with cols: 72 would cause the preceding email to be formatted as:

Email from Company Y.

Here is the product key for product X:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAA

comment:2 Changed 5 years ago by pacopablo

For word wrapping I simply use what is available in trac.util.text.wrap. While I'm not against the feature, I haven't encountered many instances when it's been an issue. So, I'm happy to take patches, but I don't I'll ever get around to writing the feature myself.

comment:3 Changed 4 years ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

On further thought, I think the current behavior is better. The only case were this has been an issue for me is with product keys, and I think that most people would not want the text to wrap in those instances.

Thanks for the feedback!

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from pacopablo. Next status will be '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.