diff --git a/lib/src/story.dart b/lib/src/story.dart index 1120a8f..5184195 100644 --- a/lib/src/story.dart +++ b/lib/src/story.dart @@ -399,5 +399,5 @@ class Chapter { return story._decorator?.decorate(w) ?? w; } - String get id => '${story.name}_$name'; + String get id => '${story.name}_$name'.replaceAll(' ', '_'); }