1. qualyzer
  2. main

Commits

Barthelemy Dagenais  committed 0521646

Refs #116 Fixed treatment of tabs and bullet points.

  • Participants
  • Parent commits f7ff79c
  • Branches default

Comments (0)

Files changed (2)

File ca.mcgill.cs.swevo.qualyzer/src/ca/mcgill/cs/swevo/qualyzer/editors/RTFDocumentProvider2.java

View file
 	private char get8bit(String numberStr)
 	{
 		int c = Integer.parseInt(numberStr, HEX_RADIX);
+		// Replace weird bullet point by dashes.
+		if (c == BULLET_POINT)
+		{
+			c = '-';
+		}
 		return (char) c;
 	}
 

File ca.mcgill.cs.swevo.qualyzer/src/ca/mcgill/cs/swevo/qualyzer/editors/RTFTags.java

View file
 	public static final String UNICODE_COUNT_FULL = "uc"; //$NON-NLS-1$
 	public static final String SPACE_CHAR = " "; //$NON-NLS-1$
 	public static final String NEW_LINE_CHAR = "\n"; //$NON-NLS-1$
-	public static final String TAB_CHAR = "\n"; //$NON-NLS-1$
+	public static final String TAB_CHAR = "\t"; //$NON-NLS-1$
 	public static final String CARRIAGE_CHAR = "\r"; //$NON-NLS-1$
 	public static final char NULL_CHAR = '\0'; //$NON-NLS-1$
 	public static final char MINUS = '-'; //$NON-NLS-1$
 	public static final char QUOTE = '"'; //$NON-NLS-1$
 	public static final char UNICODE_COUNT = 'c'; //$NON-NLS-1$
 	public static final char UNICODE = 'u'; //$NON-NLS-1$
+	public static final int BULLET_POINT = 149;
 
 	public static final String BOLD_START_TAG = "\\b"; //$NON-NLS-1$
 	public static final String BOLD_END_TAG = "\\b0"; //$NON-NLS-1$