Hello community, here is the log from the commit of package scdoc for openSUSE:Factory checked in at 2019-09-13 15:00:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/scdoc (Old) and /work/SRC/openSUSE:Factory/.scdoc.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "scdoc" Fri Sep 13 15:00:11 2019 rev:11 rq:730284 version:1.10.0 Changes: -------- --- /work/SRC/openSUSE:Factory/scdoc/scdoc.changes 2019-08-23 11:10:07.370455571 +0200 +++ /work/SRC/openSUSE:Factory/.scdoc.new.7948/scdoc.changes 2019-09-13 15:00:20.753282390 +0200 @@ -1,0 +2,8 @@ +Thu Sep 12 06:36:28 UTC 2019 - [email protected] + +- Update to 1.10.0: + * tables: add expand options + * Add contrib/_incr_version +- Update scdoc-1.6.1-makefile.patch + +------------------------------------------------------------------- Old: ---- 1.9.7.tar.gz New: ---- 1.10.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ scdoc.spec ++++++ --- /var/tmp/diff_new_pack.dsFn9M/_old 2019-09-13 15:00:21.905282439 +0200 +++ /var/tmp/diff_new_pack.dsFn9M/_new 2019-09-13 15:00:21.929282440 +0200 @@ -17,7 +17,7 @@ Name: scdoc -Version: 1.9.7 +Version: 1.10.0 Release: 0 Summary: A man page generator written in C99 License: MIT ++++++ 1.9.7.tar.gz -> 1.10.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.9.7/Makefile new/scdoc-1.10.0/Makefile --- old/scdoc-1.9.7/Makefile 2019-08-16 02:23:43.000000000 +0200 +++ new/scdoc-1.10.0/Makefile 2019-09-11 21:15:23.000000000 +0200 @@ -1,4 +1,4 @@ -VERSION=1.9.6 +VERSION=1.10.0 CFLAGS+=-g -DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter LDFLAGS+=-static INCLUDE+=-Iinclude diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.9.7/contrib/_incr_version new/scdoc-1.10.0/contrib/_incr_version --- old/scdoc-1.9.7/contrib/_incr_version 1970-01-01 01:00:00.000000000 +0100 +++ new/scdoc-1.10.0/contrib/_incr_version 2019-09-11 21:15:23.000000000 +0200 @@ -0,0 +1,4 @@ +#!/bin/sh -eux +sed -i Makefile -e "s/^VERSION=${1}/VERSION=${2}/" +git add Makefile +git commit -m "Update version to ${2}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.9.7/scdoc.5.scd new/scdoc-1.10.0/scdoc.5.scd --- old/scdoc-1.9.7/scdoc.5.scd 2019-08-16 02:23:43.000000000 +0200 +++ new/scdoc-1.10.0/scdoc.5.scd 2019-09-11 21:15:23.000000000 +0200 @@ -155,6 +155,21 @@ : 世界 ! +You may also cause columns to expand to fill the available space with < (left +align), = (center align), and > (right align), like so: + +``` +[[ *Normal column* +:< Expanded column +| *Foo* +: Bar +``` + +[[ *Normal column* +:< Expanded column +| *Foo* +: Bar + ## LITERAL TEXT You may turn off scdoc formatting and output literal text with escape codes and diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.9.7/src/main.c new/scdoc-1.10.0/src/main.c --- old/scdoc-1.9.7/src/main.c 2019-08-16 02:23:43.000000000 +0200 +++ new/scdoc-1.10.0/src/main.c 2019-09-11 21:15:23.000000000 +0200 @@ -434,6 +434,9 @@ ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, + ALIGN_LEFT_EXPAND, + ALIGN_CENTER_EXPAND, + ALIGN_RIGHT_EXPAND, }; struct table_row { @@ -508,6 +511,15 @@ case ']': curcell->align = ALIGN_RIGHT; break; + case '<': + curcell->align = ALIGN_LEFT_EXPAND; + break; + case '=': + curcell->align = ALIGN_CENTER_EXPAND; + break; + case '>': + curcell->align = ALIGN_RIGHT_EXPAND; + break; case ' ': if (prevrow) { struct table_cell *pcell = prevrow->cell; @@ -576,8 +588,28 @@ while (currow) { curcell = currow->cell; while (curcell) { - fprintf(p->output, "%c%s", "lcr"[curcell->align], - curcell->next ? " " : ""); + char *align = ""; + switch (curcell->align) { + case ALIGN_LEFT: + align = "l"; + break; + case ALIGN_CENTER: + align = "c"; + break; + case ALIGN_RIGHT: + align = "r"; + break; + case ALIGN_LEFT_EXPAND: + align = "lx"; + break; + case ALIGN_CENTER_EXPAND: + align = "cx"; + break; + case ALIGN_RIGHT_EXPAND: + align = "rx"; + break; + } + fprintf(p->output, "%s%s", align, curcell->next ? " " : ""); curcell = curcell->next; } fprintf(p->output, "%s\n", currow->next ? "" : "."); ++++++ scdoc-1.6.1-makefile.patch ++++++ --- /var/tmp/diff_new_pack.dsFn9M/_old 2019-09-13 15:00:22.657282471 +0200 +++ /var/tmp/diff_new_pack.dsFn9M/_new 2019-09-13 15:00:22.669282471 +0200 @@ -1,8 +1,8 @@ -diff -urEbwB scdoc-1.9.4/Makefile scdoc-1.9.4.new/Makefile ---- scdoc-1.9.4/Makefile 2019-03-04 16:43:31.000000000 +0100 -+++ scdoc-1.9.4.new/Makefile 2019-03-05 08:18:13.614838942 +0100 +diff -urEbw scdoc-1.10.0/Makefile scdoc-1.10.0.new/Makefile +--- scdoc-1.10.0/Makefile 2019-09-11 21:15:23.000000000 +0200 ++++ scdoc-1.10.0.new/Makefile 2019-09-12 08:37:10.876189064 +0200 @@ -1,6 +1,5 @@ - VERSION=1.9.6 + VERSION=1.10.0 CFLAGS+=-g -DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter -LDFLAGS+=-static INCLUDE+=-Iinclude
