cketti
9b807c325d
Add support for bitcoin URIs
2013-12-05 04:28:28 +01:00
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
6c4461cd13
Fix to preserve spaces
2013-05-09 23:08:11 +09:00
Koji Arai
fa80313f6b
Should preserve spaces at first of line.
2013-05-09 22:11:50 +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
548b8e07a6
Refactor code for MessageWebView.setText()
...
The MIME type for the supplied text was always text/html,
so there is no need to pass that as a parameter.
Furthermore, we are relying on it being text/html because
we are wrapping it with HTML code.
Likewise, change/simplify/rename AccessibleWebView.loadDataWithBaseURL().
2013-03-01 14:32:16 -05:00
Joe Steele
6a844a2553
Remove unused code in HtmlConverter.
...
HtmlConverter.getHtmlHeader() and getHtmlFooter() are
no longer used. Remove them and other related code.
2013-03-01 14:30:42 -05:00
Joe Steele
731022339d
Improve MessageWebView display.
...
Now that MessageWebView has 'setUseWideViewPort(true)',
the wide view port is excessively wide. It turns out
Android is using a fixed width of 980 px, so that even
plain text messages (which are already wrapped to fit
the screen) have a large empty area beside them when
scrolled to the left.
Injecting a meta tag in the html header fixes the
problem.
2013-03-01 12:55:51 -05:00
David Miller
f282386ab0
Fix issue 4771 - work around > getting included in URLs when linkifying text/plain emails
2012-12-18 09:59:14 -05:00
cketti
caa26311f1
Use HTML to format welcome message / make URL clickable
2012-12-17 12:41:12 +01:00
cketti
3b022cd72f
Remove excessive debug logging
2012-11-27 16:33:53 +01:00
cketti
2c8ae0644b
Fixed code style
2012-04-25 16:46:05 +00: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
cketti
8ce78408c2
Fixed HTML generation in MimeUtility.extractTextAndAttachments()
2012-02-17 19:42:35 +01:00
cketti
b69d6cb64c
Use Locale.US with toUpperCase() and toLowerCase() where appropriate
2011-10-27 17:17:43 +02:00
Andrew Gaul
57be9e3ee3
Make sets immutable
...
Use final and unmodifiable and avoid anonymous inner classes.
2011-10-06 20:22:18 -07:00
Andrew Chen
e12dd323f8
Issue 3105: Drop newlines in favor of preserving multiple spaces in htmlified text bodies.
2011-05-05 13:52:47 -07:00
Jesse Vincent
cfd1ad7cdb
comment some htmlifciation regexes
2011-05-05 12:50:45 -04:00
Andrew Chen
1ea27d7020
Issue 3105: Generate proper HTML-ified versions of text messages so that textification of the HTMLified text message preserves the original newlines.
2011-05-05 00:17:34 -07:00
Jesse Vincent
e19162cb86
ant astyle
2011-03-22 18:07:47 +11:00
Andrew Chen
5a22137d54
Use <pre> instead of <div> so that plain text clients get the line wrapping correct.
2011-03-02 08:17:36 -08:00
Jesse Vincent
12d1097a24
Big, scary massive "ant astyle" to get us back to something
...
approximating AOSP coding standards.
2011-02-06 17:09:48 -05:00
Andrew Chen
19d863ee41
Move linkification into a separate method. Linkify text in textToHtmlFragment. Fixed Issue 2951.
2011-02-04 23:19:06 -05:00
Andrew Chen
840fa7bf40
Replace concatenation in StringBuilder with append.
2011-01-25 04:25:27 +00:00
cketti
8279092070
Fixed lots of warnings (unused imports/variables, missing annotations, etc.)
2011-01-18 23:54:49 +00:00
Jesse Vincent
6504d592ea
Try harder not to use "special folders" as count sources
2011-01-17 04:06:34 +00:00
Jesse Vincent
38ba071172
astyle
2011-01-16 04:23:08 +00:00
Jesse Vincent
ab5c7ea6ff
Refactoring of emoji transcoding code into the htmlconverter class
2011-01-15 15:25:48 +00:00
Jesse Vincent
aacb414004
astyle
2011-01-14 01:37:52 +00:00
Andrew Chen
e56b044bbc
Add support for HTML composition with text alternative.
...
Revamp K9 Identity string.
Quote names in Address only when needed.
Remove quoted text bar and move button to quoted text area.
2011-01-12 23:48:28 +00:00
Jesse Vincent
de806f7715
astyle
2011-01-06 16:55:08 +00:00
Andrew Chen
ead632aac6
Refactor html/text conversions into its own class.
...
Add more tags to be ignored during HTML to plain text conversion.
Remove UTF-8 non-breaking spaces from generated text.
2011-01-05 04:26:33 +00:00