Commit Graph

14 Commits

Author SHA1 Message Date
Joe Steele 5a46575dc2 Generally replace \n with \r\n when part of a message
This builds upon the efforts started 2 commits back where \r\n is used for
all message text and \n is only used when the text is inside an
EolConvertingEditText widget.
2013-10-11 11:39:46 -04:00
Koji Arai 4dcf50d127 Re-desined textToHtml() according to the state transition diagram. 2013-05-11 08:44:17 +09:00
Koji Arai 3c83f7354e Added more tests for preserve spaces 2013-05-09 23:07:58 +09:00
Koji Arai ae681cb7fe Added test for preserve spaces at first of line 2013-05-09 22:11:05 +09:00
Koji Arai ba33ef232e Wrap expected long strings 2013-05-09 22:10:37 +09:00
Joe Steele c790fa73c1 Don't store the font-family preference with plain text messages.
Dynamically generate the CSS style for <pre> elements
for inclusion in the HTML <head> element when messages
are displayed.

This permits a user to change their font-family preference
for plain text messages and see the results immediately.

Obviously any old locally-stored messages that had their
font-family stored with them will continue to display using
that font-family, irrespective of the user's current
preference setting.
2013-03-01 18:48:46 -05:00
Joe Steele c21ea14af1 Fix unit tests. 2013-03-01 14:34:31 -05:00
cketti 2c8ae0644b Fixed code style 2012-04-25 16:46:05 +00:00
cketti 464a5d54e3 Make HtmlConverterTest extend TestCase like the other tests do 2012-04-25 14:11:15 +00:00
Andrew Chen adf00946bf Use property to determine if we should write test debug information or not. 2012-04-23 15:24:02 -07:00
Andrew Chen c829fe9cd2 Remove top margin on converted quote text, consistent with html quoted text. 2012-04-23 15:13:45 -07:00
Andrew Chen 9f1e2717a6 Colorize quoted text that has been converted to html.
Like Thunderbird, but optimized for mobile (no right margin quote bar, thinner left margin quote bar).
2012-04-23 15:10:34 -07:00
Andrew Chen 0bb1f4ff56 Add 1ex of margin at the bottom of converted blockquotes. 2012-04-23 14:00:03 -07:00
Andrew Chen 32ce196b5a Convert quote characters in plain text messages to blockquotes in the html version. "Be like Thunderbird." 2012-04-17 10:22:43 -07:00