Changed comments format in RSS for better readability.
This commit is contained in:
parent
b2496618bf
commit
af780428d4
4 changed files with 119 additions and 124 deletions
|
@ -96,7 +96,8 @@ public class Mobibot extends PircBot
|
|||
* The version strings.
|
||||
*/
|
||||
private static final String[] VERSION_STRS =
|
||||
{"Version: " + ReleaseInfo.getVersion() + '.' + ReleaseInfo.getBuildNumber() + " (" + ISO_SDF.format(ReleaseInfo.getBuildDate()) + ')',
|
||||
{"Version: " + ReleaseInfo.getVersion() + '.' + ReleaseInfo.getBuildNumber() + " (" + ISO_SDF
|
||||
.format(ReleaseInfo.getBuildDate()) + ')',
|
||||
"Platform: " + System.getProperty("os.name") + " (" + System.getProperty("os.version") + ", " + System
|
||||
.getProperty("os.arch") + ", " + System.getProperty("user.country") + ')',
|
||||
"Runtime: " + System.getProperty("java.runtime.name") + " (build " + System
|
||||
|
@ -2757,7 +2758,8 @@ public class Mobibot extends PircBot
|
|||
|
||||
if (split != -1)
|
||||
{
|
||||
entry.addComment(comments[j].substring(split + 2).trim(), comments[j].substring(0, split));
|
||||
entry.addComment(comments[j].substring(split + 2).trim(),
|
||||
comments[j].substring(0, split).trim());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2903,7 +2905,7 @@ public class Mobibot extends PircBot
|
|||
|
||||
if (entry.getCommentsCount() > 0)
|
||||
{
|
||||
buff.append("<br/><br/>");
|
||||
buff.append(" <br/><br/>");
|
||||
|
||||
final EntryComment[] comments = entry.getComments();
|
||||
|
||||
|
@ -2913,7 +2915,7 @@ public class Mobibot extends PircBot
|
|||
|
||||
if (j > 0)
|
||||
{
|
||||
buff.append("<br/>");
|
||||
buff.append(" <br/>");
|
||||
}
|
||||
|
||||
buff.append(comment.getNick()).append(": ").append(comment.getComment());
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Created by JReleaseInfo AntTask from Open Source Competence Group */
|
||||
/* Creation date Fri Jun 29 06:58:32 PDT 2012 */
|
||||
/* Creation date Fri Aug 24 02:59:30 PDT 2012 */
|
||||
package net.thauvin.erik.mobibot;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -20,21 +20,21 @@ public class ReleaseInfo {
|
|||
}
|
||||
|
||||
|
||||
/** buildDate (set during build process to 1340978312640L). */
|
||||
private static final Date buildDate = new Date(1340978312640L);
|
||||
/** buildDate (set during build process to 1345802370733L). */
|
||||
private static final Date buildDate = new Date(1345802370733L);
|
||||
|
||||
/**
|
||||
* Get buildDate (set during build process to Fri Jun 29 06:58:32 PDT 2012).
|
||||
* Get buildDate (set during build process to Fri Aug 24 02:59:30 PDT 2012).
|
||||
* @return Date buildDate
|
||||
*/
|
||||
public static Date getBuildDate() { return buildDate; }
|
||||
|
||||
|
||||
/**
|
||||
* Get buildNumber (set during build process to 3).
|
||||
* Get buildNumber (set during build process to 4).
|
||||
* @return int buildNumber
|
||||
*/
|
||||
public static int getBuildNumber() { return 3; }
|
||||
public static int getBuildNumber() { return 4; }
|
||||
|
||||
|
||||
/** project (set during build process to "mobibot"). */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue