rebook
rebook copied to clipboard
Error in -cbox generated command line
When I'm choosing some margins in "Crop Margins (in)", the generated command line looks like
-mode def -ws 0.200 -wrap+ -rt 0 -evl 1 -ehl 1 -cbox1 in,1 in,6 in,9 in -dev kpw -a- -ui- -x
And it doesn't work. The generated command line should (I think) :
- have a space between "-cbox" and the first value
- not have space between value and the unit
-mode def -ws 0.200 -wrap+ -rt 0 -evl 1 -ehl 1 -cbox 1in,1in,6in,9in -dev kpw -a- -ui- -x
I found a solution (of a workaround… without extensive test, I'm not sure). If you add a "+" on the second line of arg = ()
, the generated command line is correct :
arg = (
# no space between -cbox and page range
crop_margin_arg_name + page_range_arg + ' '
+ 'in,'.join(map(str.strip, margin_args)) + 'in' # adding the "+" at the beginning of the line
)