File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -229,13 +229,13 @@ impl CodeToPdf {
229229 } ) ;
230230 prev_colour = text_colour;
231231 }
232- // Split into lines, with the length of the first line being the length remaining on the current line
232+ // Split region into multiple lines if it is too long to fit on the current line
233233 let lines = self . text_wrapper . split_into_lines ( text, |i| match i {
234234 0 => Pt ( line_width_remaining) ,
235235 _ => self . page_dimensions . max_text_width ( ) . into_pt ( ) ,
236236 } ) ;
237237 match lines. len ( ) {
238- // If only a single line, then no new lines are going to be made (as we're processing a region here)
238+ // If only a single line, then no new lines are going to be made (as we're processing a single region here)
239239 1 => {
240240 self . current_page_contents . push ( Op :: WriteText {
241241 items : vec ! [ TextItem :: Text (
You can’t perform that action at this time.
0 commit comments