Skip to content

Commit

Permalink
Merge pull request #47 from OUCC/feat/#46
Browse files Browse the repository at this point in the history
#46 修正
  • Loading branch information
miyaji255 authored May 2, 2024
2 parents 51d161a + 04264b4 commit 2679c64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion KoeBook.Core/Services/ClaudeStoryGeneratorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public async ValueTask<string> CreateStoryAsync(StoryGenre storyGenre, string pr
},
cancellationToken: cancellationToken
);
return storyXml.ToString();
var xml = storyXml.ToString();
return xml[xml.IndexOf('<')..(xml.LastIndexOf('>') + 1)];
}
catch (OperationCanceledException) { throw; }
catch (Exception e)
Expand Down
2 changes: 1 addition & 1 deletion KoeBook/Services/CreateCoverFileService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void Create(string title, string author, string coverFilePath)
graphics.DrawString($"著者: {author}", authorFont, brush, new Rectangle(0, 1920, 1600, 640), stringFormat);

// png として出力
bitmap.Save(Path.Combine(coverFilePath, "Cover.png"), ImageFormat.Png);
bitmap.Save(coverFilePath, ImageFormat.Png);
}
catch (Exception ex)
{
Expand Down

0 comments on commit 2679c64

Please sign in to comment.