1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 02:09:35 +02:00

series index representation fixed: 10 instead of 1E+1

This commit is contained in:
Nikolay Pultsin 2013-04-28 16:23:02 +02:00
parent 0ba4fc22ea
commit a6147ce43d
4 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
===== 1.8 (May ??, 2013) =====
* Fixed series index representation: 10 instead 1E+1
===== 1.7.9 (Apr 23, 2013) =====
* Fixed Ukrainian hyphenations
* Fixed missing paragraph before new section issue (in some book formats)

View file

@ -243,7 +243,7 @@ public class BookInfoActivity extends Activity {
setupInfoPair(R.id.book_series, "series", series == null ? null : series.Series.getTitle());
String seriesIndexString = null;
if (series != null && series.Index != null) {
seriesIndexString = series.Index.toString();
seriesIndexString = series.Index.toPlainString();
}
setupInfoPair(R.id.book_series_index, "indexInSeries", seriesIndexString);

View file

@ -607,7 +607,7 @@ final class SQLiteBooksDatabase extends BooksDatabase {
myInsertBookSeriesStatement.bindLong(2, seriesId);
SQLiteUtil.bindString(
myInsertBookSeriesStatement, 3,
seriesInfo.Index != null ? seriesInfo.Index.toString() : null
seriesInfo.Index != null ? seriesInfo.Index.toPlainString() : null
);
myInsertBookSeriesStatement.execute();
}

View file

@ -205,7 +205,7 @@ class XMLSerializer extends AbstractSerializer {
if (seriesInfo != null) {
appendTagWithContent(buffer, "calibre:series", seriesInfo.Series.getTitle());
if (seriesInfo.Index != null) {
appendTagWithContent(buffer, "calibre:series_index", seriesInfo.Index);
appendTagWithContent(buffer, "calibre:series_index", seriesInfo.Index.toPlainString());
}
}