}
return String.format(
- "Title: [%s]\nAuthor: [%s]\nDate: [%s]\nTags: [%s]\n"
- + "Resume: [%s]\nCover: [%s]", title, getAuthor(),
- getDate(), tags.toString(), resume, cover);
+ "Meta %s:\n\tTitle: [%s]\n\tAuthor: [%s]\n\tDate: [%s]\n\tTags: [%s]"
+ + "\n\tResume: [%s]\n\tCover: [%s]", luid, title,
+ getAuthor(), getDate(), tags.toString(), resume, cover);
}
}
*/
public synchronized Story save(Story story, String luid, Progress pg)
throws IOException {
+
+ System.out.println("story before save: "+story);
+
// Do not change the original metadata, but change the original story
MetaData meta = story.getMeta().clone();
story.setMeta(meta);
}
story = doSave(story, pg);
-
+ System.out.println("story after save: "+story);
+
updateInfo(story.getMeta());
return story;