karno/Mystique — pull request #52 by ktoku89 (2012-11-14 19:46:03+00:00)
Title: Fix issue of wrong counting characters if a text contains newline

Fix it by replacing CRLF to LF.

Because WPF text control recognize CRLF as a new line, the new line has two characters (\r\n). But twitter converts CRLF to LF so that one new lines should be treated as *one* character.

Some people insist using @"\n" instead of "\n" at specifying LF. However, @"\n" doesn't work well in the test. Thus "\n" are used.

ref karno/Mystique#36
I open the new pull request because I cannot attach this to karno/Mystique#36.