Skip to content

Commit

Permalink
名前の扱いを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
VienosNotes committed Aug 15, 2011
1 parent f3debde commit 41fce63
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion lib/OrangeGrove/XML/Renderer.pm
Expand Up @@ -86,7 +86,11 @@ sub render {
$text =~ s/\A\n//;
$text =~ s/\t+//g;
unless ($page->name eq "none") {
$text = " - " . $page->name . " - \n" . $text;
my $name = $page->name;
$name =~ s/\n//g;
$name =~ s/\t+//g;
$name =~ s/\s\s+//g;
$text = " - " . $name . " - \n" . $text;
} else {
$text = "\n" . $text;
}
Expand Down
7 changes: 5 additions & 2 deletions t/proj/scenario.xml
Expand Up @@ -9,7 +9,7 @@
</fig>
<text>
<name>Name</name>
<msg>fig1, fig2, none</msg>
<msg>fig1, fig2, 無し</msg>
</text>
</page>

Expand All @@ -25,6 +25,9 @@

<page>
<text>
<name>
なまえー
</name>
<msg>
no change, new line test => あああああああああああああああああああああああああああ
いいいいいいいいいいいいいいいいいいいい
Expand All @@ -39,7 +42,7 @@
</fig>
<text>
<msg>
fg all clear
立ち絵全部消す
</msg>
</text>
</page>
Expand Down

0 comments on commit 41fce63

Please sign in to comment.