Permalink
Browse files

fixed issue edit diary.

  • Loading branch information...
1 parent 62c4016 commit 802d54df34015eb5c916f06e812b41b09362b8bf @kishikawakatsumi committed Nov 14, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Classes/DiaryViewController.m
@@ -659,7 +659,7 @@ - (void)connectionDidFinishLoading:(NSURLConnection *)connection {
- (void)parserFinished:(HatenaAtomPubResponseParser *)parser {
titleField.text = self.titleTextForEdit;
- bodyTextView.text = [NSString stringWithFormat:@"[%@]\n", [parser.entry objectForKey:@"syntax"]];
+ bodyTextView.text = [NSString stringWithFormat:@"%@", [parser.entry objectForKey:@"syntax"]];
clearButton.enabled = [titleField.text length] > 0 || [bodyTextView.text length] > 0;
draftButton.enabled = submitButton.enabled = [titleField.text length] > 0 && [bodyTextView.text length] > 0;
@@ -721,7 +721,7 @@ - (void)diaryUploader:(DiaryUploader *)uploader uploadFailed:(NSError *)error {
#pragma mark -
- (void)imageUploader:(FotolifeUploader *)uploader uploadFinished:(id)responseData {
- [self insertSyntax:[responseData objectForKey:@"syntax"]];
+ [self insertSyntax:[NSString stringWithFormat:@"[%@]", [responseData objectForKey:@"syntax"]]];
[self enableUserInteraction];

0 comments on commit 802d54d

Please sign in to comment.