Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15
paps
paps-gutter-width.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File paps-gutter-width.patch of Package paps
Description: Implement --gutter-width option Origin: vendor, http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;bug=536761 Bug-Debian: http://bugs.debian.org/536761 Author: Arthur de Jong <arthur@west.nl> --- src/paps.1 | 3 +++ src/paps.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) --- src/paps.1 +++ src/paps.1 2017-12-05 12:54:29.578409282 +0000 @@ -267,6 +267,9 @@ Set left margin. Default is 36 postscrip .B \-\-right-margin=rm Set right margin. Default is 36 postscript points. .TP +.B \-\-gutter-width=gw +Set gutter width. Default is 40 postscript points. +.TP .B \-\-header Draw page header with document name, date and page number for each page. Header is not printed by default. --- src/paps.c +++ src/paps.c 2017-12-05 12:57:23.791164390 +0000 @@ -450,7 +450,7 @@ int main(int argc, char *argv[]) int num_columns = 1; int top_margin = MARGIN_TOP, bottom_margin = MARGIN_BOTTOM, right_margin = MARGIN_RIGHT, left_margin = MARGIN_LEFT; - + int gutter_width = 40; gboolean do_fatal_warnings = FALSE; const gchar *font = MAKE_FONT_NAME (DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE); gchar *encoding = NULL; @@ -491,6 +491,8 @@ int main(int argc, char *argv[]) N_("Set right margin. (Default: 36)"), "NUM"}, {"left-margin", 0, 0, G_OPTION_ARG_INT, &left_margin, N_("Set left margin. (Default: 36)"), "NUM"}, + {"gutter-width", 0, 0, G_OPTION_ARG_INT, &gutter_width, + N_("Set gutter width. (Default: 40)"), "NUM"}, {"header", 0, 0, G_OPTION_ARG_NONE, &do_draw_header, N_("Draw page header for each page."), NULL}, {"footer", 0, 0, G_OPTION_ARG_NONE, &do_draw_footer, @@ -527,7 +529,6 @@ int main(int argc, char *argv[]) PangoFontMap *fontmap; PangoFontset *fontset; PangoFontMetrics *metrics; - int gutter_width = 40; int total_gutter_width; double page_width = paper_sizes[0].width; double page_height = paper_sizes[0].height;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor