1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Fixed code style

This commit is contained in:
cketti 2012-04-25 16:46:05 +00:00
parent 464a5d54e3
commit 2c8ae0644b
2 changed files with 13 additions and 13 deletions

View File

@ -244,7 +244,7 @@ public class HtmlConverter {
buff.append("<");
break;
case '>':
if(isStartOfLine) {
if (isStartOfLine) {
quotesThisLine++;
} else {
buff.append(">");
@ -253,25 +253,25 @@ public class HtmlConverter {
case '\r':
break;
case ' ':
if(isStartOfLine) {
if (isStartOfLine) {
// If we're still in the start of the line and we have spaces, don't output them, since they
// may be collapsed by our div-converting magic.
break;
}
default:
if(isStartOfLine) {
if (isStartOfLine) {
// Not a quote character and not a space. Content is starting now.
isStartOfLine = false;
if(K9.DEBUG) {
if (K9.DEBUG) {
Log.d(K9.LOG_TAG, "currentQuoteDepth: " + quoteDepth + " quotesThisLine: " + quotesThisLine);
}
// Add/remove blockquotes by comparing this line's quotes to the previous line's quotes.
if(quotesThisLine > quoteDepth) {
for(int i = quoteDepth; i < quotesThisLine; i++) {
if (quotesThisLine > quoteDepth) {
for (int i = quoteDepth; i < quotesThisLine; i++) {
buff.append(HTML_BLOCKQUOTE_START.replace(HTML_BLOCKQUOTE_COLOR_TOKEN, getQuoteColor(i + 1)));
}
} else if(quotesThisLine < quoteDepth) {
for(int i = quoteDepth; i > quotesThisLine; i--) {
} else if (quotesThisLine < quoteDepth) {
for (int i = quoteDepth; i > quotesThisLine; i--) {
buff.append(HTML_BLOCKQUOTE_END);
}
}

View File

@ -66,7 +66,7 @@ public class HtmlConverterTest extends TestCase {
}
private void writeToFile(final String content) {
if(!WRITE_TO_FILE) {
if (!WRITE_TO_FILE) {
return;
}
try {