@@ -669,9 +669,8 @@ static void autochop_printStatus(color_ostream &out) {
669669 for (auto &burrow : plotinfo->burrows .list ) {
670670 name_width = std::max (name_width, (int )burrow->name .size ());
671671 }
672- name_width = -name_width; // left justify
673672
674- constexpr auto fmt = " {:{}} {:4} {:4} {:8} {:5} {:6} {:7}\n " ;
673+ constexpr auto fmt = " {:< {}} {:4} {:4} {:8} {:5} {:6} {:7}\n " ;
675674 out.print (fmt, " burrow name" , name_width, " id " , " chop" , " clearcut" , " trees" , " marked" , " protect" );
676675 out.print (fmt, " -----------" , name_width, " ----" , " ----" , " --------" , " -----" , " ------" , " -------" );
677676
@@ -681,6 +680,7 @@ static void autochop_printStatus(color_ostream &out) {
681680 bool protect_brewable = false ;
682681 bool protect_edible = false ;
683682 bool protect_cookable = false ;
683+ std::string name = burrow->name .empty () ? fmt::format (" Burrow {}" , burrow->id +1 ) : burrow->name ;
684684 if (watched_burrows_indices.count (burrow->id )) {
685685 auto &c = watched_burrows[watched_burrows_indices[burrow->id ]];
686686 chop = c.get_bool (BURROW_CONFIG_CHOP);
@@ -689,7 +689,7 @@ static void autochop_printStatus(color_ostream &out) {
689689 protect_edible = c.get_bool (BURROW_CONFIG_PROTECT_EDIBLE);
690690 protect_cookable = c.get_bool (BURROW_CONFIG_PROTECT_COOKABLE);
691691 }
692- out.print (fmt, burrow-> name , name_width, burrow->id ,
692+ out.print (fmt, name, name_width, burrow->id ,
693693 chop ? " [x]" : " [ ]" , clearcut ? " [x]" : " [ ]" ,
694694 tree_counts[burrow->id ],
695695 designated_tree_counts[burrow->id ],
0 commit comments