Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Page break between files when printing in patch mode. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
b3d1b3f3697a6f5acf58190c3de02ef3 |
User & Date: | peter 2015-10-14 16:56:01.764 |
Context
2015-11-17
| ||
23:44 | Compress printed PDF check-in: 04edfdfee9 user: peter tags: trunk | |
2015-10-14
| ||
16:56 | Page break between files when printing in patch mode. check-in: b3d1b3f369 user: peter tags: trunk | |
2015-10-12
| ||
22:29 | Use tablelist 5.14 that includes -colorizecommand, for table diff. check-in: 668aeaacc3 user: peter tags: trunk | |
Changes
Changes to Changes.
1 2 3 4 5 6 7 | 2015-10-12 Use tablelist 5.14 that includes -colorizecommand, for table diff. 2015-07-02 Printing followed by redo diff closed Eskil. Fixed this. 2015-06-02 | > > > | 1 2 3 4 5 6 7 8 9 10 | 2015-10-14 Page break between files when printing in patch mode. 2015-10-12 Use tablelist 5.14 that includes -colorizecommand, for table diff. 2015-07-02 Printing followed by redo diff closed Eskil. Fixed this. 2015-06-02 |
︙ | ︙ |
Changes to src/print.tcl.
︙ | ︙ | |||
262 263 264 265 266 267 268 269 270 271 272 273 274 275 | set pdf [eskilprint %AUTO% -file $pdfFile -cpl $cpl -cpln $cpln \ -headleft $lfile -headright $rfile -headsize 10] set linesPerPage [$pdf getNLines] $pdf setTag change $::Pref(printColorChange) $pdf setTag new1 $::Pref(printColorNew1) $pdf setTag new2 $::Pref(printColorNew2) set len1 [llength $wraplines1] set len2 [llength $wraplines2] set max [expr {$len1 > $len2 ? $len1 : $len2}] set npages [expr {($max + $linesPerPage - 1) / $linesPerPage}] $pdf configure -headnpages $npages | > > > > > > > > > > > > > > > > > > > > > > > > > > > | 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 | set pdf [eskilprint %AUTO% -file $pdfFile -cpl $cpl -cpln $cpln \ -headleft $lfile -headright $rfile -headsize 10] set linesPerPage [$pdf getNLines] $pdf setTag change $::Pref(printColorChange) $pdf setTag new1 $::Pref(printColorNew1) $pdf setTag new2 $::Pref(printColorNew2) # Preprocess for page breaks in patch mode if {$::eskil($top,mode) eq "patch"} { set i 0 set newWlines1 {} set newWlines2 {} foreach wline1 $wraplines1 wline2 $wraplines2 { if {[string match "-+-+-+-+-+-+-+-+-*" [lindex $wline1 0]]} { # This is a patch chunk header if {$i > 3} { for {} {$i < $linesPerPage} {incr i} { lappend newWlines1 {} lappend newWlines2 {} } set i 0 } } incr i if {$i >= $linesPerPage} { set i 0 } lappend newWlines1 $wline1 lappend newWlines2 $wline2 } set wraplines1 $newWlines1 set wraplines2 $newWlines2 } set len1 [llength $wraplines1] set len2 [llength $wraplines2] set max [expr {$len1 > $len2 ? $len1 : $len2}] set npages [expr {($max + $linesPerPage - 1) / $linesPerPage}] $pdf configure -headnpages $npages |
︙ | ︙ |