@@ -19,7 +19,7 @@ pub mod list {
19
19
} ;
20
20
use crate :: tavern:: structs:: list:: { App , PBHouse } ;
21
21
use crate :: tavern:: traits:: list:: { AppFn , ToCapitalized } ;
22
- use crate :: text_postproc:: tpp:: { enum_string_to_phrase, is_a_an, tidy, trim_whitespace} ;
22
+ use crate :: text_postproc:: tpp:: { enum_string_to_phrase, is_a_an, l1_heading , l2_heading , l3_heading , tidy, trim_whitespace} ;
23
23
24
24
impl Distribution < HouseDishWhatSide > for StandardUniform {
25
25
fn sample < R : Rng + ?Sized > ( & self , rng : & mut R ) -> HouseDishWhatSide {
@@ -498,39 +498,46 @@ pub mod list {
498
498
}
499
499
500
500
impl fmt:: Display for PBHouse {
501
+
501
502
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
502
- write ! (
503
+ writeln ! (
503
504
f,
504
- l1_heading( "Narrative Information" )
505
+ "{}" , l1_heading( "Narrative Information" . to_string ( ) )
505
506
) ?;
507
+ writeln ! ( f, " " ) ?;
506
508
507
- write ! (
509
+ writeln ! (
508
510
f,
509
- l2_heading( "For the Characters" )
511
+ "{}" , l2_heading( "For the Characters" . to_string ( ) )
510
512
) ?;
513
+ writeln ! ( f, " " ) ?;
511
514
for line in & self . general_info ( ) {
512
- write ! ( f, "{}" , line) ?;
515
+ write ! ( f, "{}" , line) ?;
513
516
}
514
517
515
- write ! (
518
+ writeln ! (
516
519
f,
517
- l2_heading( "GM Notes" )
520
+ "{}" , l2_heading( "GM Notes" . to_string ( ) )
518
521
) ?;
519
- write ! (
522
+ writeln ! ( f, " " ) ?;
523
+ writeln ! (
520
524
f,
521
- l3_heading( "Establishment History" )
525
+ "{}" , l3_heading( "Establishment History" . to_string ( ) )
522
526
) ?;
527
+ writeln ! ( f, " " ) ?;
523
528
for line in & self . establishment_history_notes {
524
- write ! ( f, "{}" , line) ?;
529
+ writeln ! ( f, "{}" , line) ?;
525
530
}
531
+ writeln ! ( f, " " ) ?;
526
532
527
- write ! (
533
+ writeln ! (
528
534
f,
529
- l3_heading( "Redlight Services" )
530
- ) ?;
535
+ "{}" , l3_heading( "Redlight Services" . to_string ( ) )
536
+ ) ?;
531
537
for line in & self . redlight_services {
532
- write ! ( f, "\n {}" , line) ?;
538
+ writeln ! ( f, "{}" , line) ?;
533
539
}
540
+ writeln ! ( f, " " ) ?;
534
541
535
542
Ok ( ( ) )
536
543
}
0 commit comments