Hello community, here is the log from the commit of package scdoc for openSUSE:Factory checked in at 2020-12-07 15:01:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/scdoc (Old) and /work/SRC/openSUSE:Factory/.scdoc.new.5913 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "scdoc" Mon Dec 7 15:01:32 2020 rev:15 rq:853527 version:1.11.1 Changes: -------- --- /work/SRC/openSUSE:Factory/scdoc/scdoc.changes 2020-07-30 12:26:08.435631363 +0200 +++ /work/SRC/openSUSE:Factory/.scdoc.new.5913/scdoc.changes 2020-12-07 15:01:33.540792080 +0100 @@ -1,0 +2,8 @@ +Mon Dec 7 08:44:22 UTC 2020 - Michael Vetter <[email protected]> + +- Update to 1.11.1: + * string.c: swap calloc arguments + * Cast ctype.h inputs to unsigned char + * Suppress sentence spacing after end-of-sentence characters. + +------------------------------------------------------------------- Old: ---- 1.11.0.tar.gz New: ---- 1.11.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ scdoc.spec ++++++ --- /var/tmp/diff_new_pack.AxTEYp/_old 2020-12-07 15:01:34.300792929 +0100 +++ /var/tmp/diff_new_pack.AxTEYp/_new 2020-12-07 15:01:34.300792929 +0100 @@ -17,7 +17,7 @@ Name: scdoc -Version: 1.11.0 +Version: 1.11.1 Release: 0 Summary: A man page generator written in C99 License: MIT ++++++ 1.11.0.tar.gz -> 1.11.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.11.0/.build.yml new/scdoc-1.11.1/.build.yml --- old/scdoc-1.11.0/.build.yml 2020-06-14 17:21:58.000000000 +0200 +++ new/scdoc-1.11.1/.build.yml 2020-12-06 14:59:32.000000000 +0100 @@ -1,12 +1,6 @@ image: alpine/edge -packages: -- flex -- bison sources: - https://git.sr.ht/~sircmpwn/scdoc -- https://git.sr.ht/~sircmpwn/annotatec -secrets: -- 52022781-b772-4d8d-b7fe-0d962a4947b6 tasks: - build: | cd scdoc @@ -14,14 +8,3 @@ - check: | cd scdoc make check -- annotatec: | - cd annotatec - make - sudo make install PREFIX=/usr -- annotations: | - cd ~/scdoc - # that version string, jesus christ - find src -name "*.c" | \ - xargs annotatec -gC 'cpp -DVERSION='"'"'"0.0.0"'"'"' -std=c99 -Iinclude -U__GNUC__' \ - >annotations.json - ~/upload-annotations annotations.json sircmpwn scdoc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.11.0/Makefile new/scdoc-1.11.1/Makefile --- old/scdoc-1.11.0/Makefile 2020-06-14 17:21:58.000000000 +0200 +++ new/scdoc-1.11.1/Makefile 2020-12-06 14:59:32.000000000 +0100 @@ -1,4 +1,4 @@ -VERSION=1.11.0 +VERSION=1.11.1 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.11.0/scdoc.5.scd new/scdoc-1.11.1/scdoc.5.scd --- old/scdoc-1.11.0/scdoc.5.scd 2020-06-14 17:21:58.000000000 +0200 +++ new/scdoc-1.11.1/scdoc.5.scd 2020-12-06 14:59:32.000000000 +0100 @@ -120,7 +120,7 @@ Each line of a table should start with | or : to start a new row or column respectively (or space to continue the previous cell on multiple lines), followed by [ or - or ] to align the contents to the left, center, or right, -followed by a space and the contents of that cell. You may use a space instead +followed by a space and the contents of that cell. You may use a space instead of an alignment specifier to inherit the alignment of the same column in the previous row. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.11.0/src/main.c new/scdoc-1.11.1/src/main.c --- old/scdoc-1.11.0/src/main.c 2020-06-14 17:21:58.000000000 +0200 +++ new/scdoc-1.11.1/src/main.c 2020-12-06 14:59:32.000000000 +0100 @@ -21,7 +21,7 @@ uint32_t ch; char *subsection; while ((ch = parser_getch(p)) != UTF8_INVALID) { - if (ch < 0x80 && isalnum(ch)) { + if (ch < 0x80 && isalnum((unsigned char)ch)) { int ret = str_append_ch(section, ch); assert(ret != -1); } else if (ch == ')') { @@ -112,7 +112,8 @@ struct tm *date_tm = gmtime(&date_time); strftime(date, sizeof(date), "%F", date_tm); while ((ch = parser_getch(p)) != UTF8_INVALID) { - if ((ch < 0x80 && isalnum(ch)) || ch == '_' || ch == '-' || ch == '.') { + if ((ch < 0x80 && isalnum((unsigned char)ch)) + || ch == '_' || ch == '-' || ch == '.') { int ret = str_append_ch(name, ch); assert(ret != -1); } else if (ch == '(') { @@ -220,7 +221,9 @@ break; case '_': next = parser_getch(p); - if (!isalnum(last) || ((p->flags & FORMAT_UNDERLINE) && !isalnum(next))) { + if (!isalnum((unsigned char)last) || ( + (p->flags & FORMAT_UNDERLINE) && + !isalnum((unsigned char)next))) { parse_format(p, FORMAT_UNDERLINE); } else { utf8_fputch(p->output, ch); @@ -241,10 +244,17 @@ case '.': if (!i) { // Escape . if it's the first character - fprintf(p->output, "\\&."); + fprintf(p->output, "\\&.\\&"); break; } /* fallthrough */ + case '!': + case '?': + last = ch; + utf8_fputch(p->output, ch); + // Suppress sentence spacing + fprintf(p->output, "\\&"); + break; default: last = ch; utf8_fputch(p->output, ch); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.11.0/src/string.c new/scdoc-1.11.1/src/string.c --- old/scdoc-1.11.0/src/string.c 2020-06-14 17:21:58.000000000 +0200 +++ new/scdoc-1.11.1/src/string.c 2020-12-06 14:59:32.000000000 +0100 @@ -16,7 +16,7 @@ } struct str *str_create() { - struct str *str = calloc(sizeof(struct str), 1); + struct str *str = calloc(1, sizeof(struct str)); str->str = malloc(16); str->size = 16; str->len = 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.11.0/test/line-breaks new/scdoc-1.11.1/test/line-breaks --- old/scdoc-1.11.0/test/line-breaks 2020-06-14 17:21:58.000000000 +0200 +++ new/scdoc-1.11.1/test/line-breaks 2020-12-06 14:59:32.000000000 +0100 @@ -44,3 +44,12 @@ _world_ EOF end 0 + +begin "Suppresses sentence spacing" +scdoc <<EOF | grep 'hel!\\&lo.\\&' >/dev/null +test(8) + +hel!lo. +world. +EOF +end 0 ++++++ scdoc-1.6.1-makefile.patch ++++++ --- /var/tmp/diff_new_pack.AxTEYp/_old 2020-12-07 15:01:34.392793032 +0100 +++ /var/tmp/diff_new_pack.AxTEYp/_new 2020-12-07 15:01:34.392793032 +0100 @@ -1,8 +1,8 @@ -diff -urEbw scdoc-1.11.0/Makefile scdoc-1.11.0.new/Makefile ---- scdoc-1.11.0/Makefile 2020-06-14 17:21:58.000000000 +0200 -+++ scdoc-1.11.0.new/Makefile 2020-06-16 10:24:07.293848736 +0200 +diff -urEbwB scdoc-1.11.1/Makefile scdoc-1.11.1.new/Makefile +--- scdoc-1.11.1/Makefile 2020-12-06 14:59:32.000000000 +0100 ++++ scdoc-1.11.1.new/Makefile 2020-12-07 09:54:20.562270397 +0100 @@ -1,6 +1,5 @@ - VERSION=1.11.0 + VERSION=1.11.1 CFLAGS+=-g -DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter -LDFLAGS+=-static INCLUDE+=-Iinclude _______________________________________________ openSUSE Commits mailing list -- [email protected] To unsubscribe, email [email protected] List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/[email protected]
