Opened 11 years ago

Closed 9 years ago

#1729 closed Defect (Fixed)

Tab characters are dropped

Reported by: lapcat Owned by: timothy
Component: Colloquy (Mac) Version: Local Build
Severity: Normal Keywords:
Cc:

Description

If I paste some text containing tab characters into Colloquy, the tab characters are dropped. This has a number of undesirable side effects, such as making the text hard to read or losing the proper spacing for indented source code.

Tab characters are stripped by the method -[NSString stringByStrippingIllegalXMLCharacters] implemented here:
http://colloquy.info/project/browser/trunk/Additions/NSStringAdditions.m#L1005

The illegalSet includes all characters from 0x00 to 0x1f, including the tab, which is 0x09. When I add the following code, tab characters are preserved, and it seems to work fine in my (admittedly limited) testing:

	[illegalSet removeCharactersInRange:NSMakeRange( 0x09, 1 )];

Change History (1)

comment:1 Changed 9 years ago by zach

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.