Skip to content

Commit

Permalink
Make smart page titles consistent with page 1
Browse files Browse the repository at this point in the history
Should now read
Page 1 - Erasure Status
Page 2 - Smart Data
Page 3 - Smart Data

and not as previously
Page 1 - Erasure Status
Smart Data - Page 2
Smart Data - Page 3
  • Loading branch information
PartialVolume committed Nov 28, 2023
1 parent 3f78d76 commit c24e248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/create_pdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ int nwipe_get_smart_data( nwipe_context_t* c )
page = pdf_append_page( pdf );

/* Create the header and footer for page 2, the start of the smart data */
snprintf( page_title, sizeof( page_title ), "Smart Data - Page %i", page_number );
snprintf( page_title, sizeof( page_title ), "Page %i - Smart Data", page_number );
create_header_and_footer( c, page_title );

/* Read the output a line at a time - output it. */
Expand Down Expand Up @@ -930,7 +930,7 @@ int nwipe_get_smart_data( nwipe_context_t* c )
y = 630;

/* create the header and footer for the next page */
snprintf( page_title, sizeof( page_title ), "Smart Data - Page %i", page_number );
snprintf( page_title, sizeof( page_title ), "Page %i - Smart Data", page_number );
create_header_and_footer( c, page_title );
}
}
Expand Down

0 comments on commit c24e248

Please sign in to comment.