Hello community, here is the log from the commit of package scdoc for openSUSE:Factory checked in at 2019-03-01 16:47:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/scdoc (Old) and /work/SRC/openSUSE:Factory/.scdoc.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "scdoc" Fri Mar 1 16:47:30 2019 rev:6 rq:680031 version:1.9.1 Changes: -------- --- /work/SRC/openSUSE:Factory/scdoc/scdoc.changes 2019-02-25 18:00:55.618103328 +0100 +++ /work/SRC/openSUSE:Factory/.scdoc.new.28833/scdoc.changes 2019-03-01 16:47:32.077796597 +0100 @@ -1,0 +2,6 @@ +Thu Feb 28 07:52:05 UTC 2019 - Michael Vetter <[email protected]> + +- Update to 1.9.1: + Fix underscores in underlined words + +------------------------------------------------------------------- Old: ---- 1.9.0.tar.gz New: ---- 1.9.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ scdoc.spec ++++++ --- /var/tmp/diff_new_pack.8377Yu/_old 2019-03-01 16:47:32.585796404 +0100 +++ /var/tmp/diff_new_pack.8377Yu/_new 2019-03-01 16:47:32.589796403 +0100 @@ -12,12 +12,12 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: scdoc -Version: 1.9.0 +Version: 1.9.1 Release: 0 Summary: A man page generator written in C99 License: MIT ++++++ 1.9.0.tar.gz -> 1.9.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.9.0/Makefile new/scdoc-1.9.1/Makefile --- old/scdoc-1.9.0/Makefile 2019-02-24 18:20:09.000000000 +0100 +++ new/scdoc-1.9.1/Makefile 2019-02-28 01:09:09.000000000 +0100 @@ -1,4 +1,4 @@ -VERSION=1.9.0 +VERSION=1.9.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.9.0/scdoc.pc new/scdoc-1.9.1/scdoc.pc --- old/scdoc-1.9.0/scdoc.pc 2019-02-24 18:20:09.000000000 +0100 +++ new/scdoc-1.9.1/scdoc.pc 2019-02-28 01:09:09.000000000 +0100 @@ -4,4 +4,4 @@ Name: scdoc Description: Man page generator -Version: 1.9.0 +Version: 1.9.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.9.0/src/main.c new/scdoc-1.9.1/src/main.c --- old/scdoc-1.9.0/src/main.c 2019-02-24 18:20:09.000000000 +0100 +++ new/scdoc-1.9.1/src/main.c 2019-02-28 01:09:09.000000000 +0100 @@ -195,7 +195,7 @@ } static void parse_text(struct parser *p) { - uint32_t ch, last = ' '; + uint32_t ch, next, last = ' '; int i = 0; while ((ch = parser_getch(p)) != UTF8_INVALID) { switch (ch) { @@ -213,11 +213,13 @@ parse_format(p, FORMAT_BOLD); break; case '_': - if (!isalnum(last) || (p->flags & FORMAT_UNDERLINE)) { + next = parser_getch(p); + if (!isalnum(last) || ((p->flags & FORMAT_UNDERLINE) && !isalnum(next))) { parse_format(p, FORMAT_UNDERLINE); } else { utf8_fputch(p->output, ch); } + parser_pushch(p, next); break; case '+': parse_linebreak(p); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.9.0/test/inline-formatting new/scdoc-1.9.1/test/inline-formatting --- old/scdoc-1.9.0/test/inline-formatting 2019-02-24 18:20:09.000000000 +0100 +++ new/scdoc-1.9.1/test/inline-formatting 2019-02-28 01:09:09.000000000 +0100 @@ -17,7 +17,15 @@ EOF end 0 -begin "Allows underscores in bolded words" +begin "Ignores underscores in underlined words" +scdoc <<EOF | grep '\\fIhello_world\\fR' >/dev/null +test(8) + +_hello_world_ +EOF +end0 + +begin "Ignores underscores in bolded words" scdoc <<EOF | grep '^\\fBhello_world\\fR' >/dev/null test(8) ++++++ scdoc-1.6.1-makefile.patch ++++++ --- /var/tmp/diff_new_pack.8377Yu/_old 2019-03-01 16:47:32.645796381 +0100 +++ /var/tmp/diff_new_pack.8377Yu/_new 2019-03-01 16:47:32.649796380 +0100 @@ -2,7 +2,7 @@ --- scdoc-1.8.0/Makefile 2019-01-27 17:09:10.000000000 +0100 +++ scdoc-1.8.0.new/Makefile 2019-02-04 10:31:38.792833379 +0100 @@ -1,6 +1,5 @@ - VERSION=1.9.0 + VERSION=1.9.1 CFLAGS+=-g -DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter -LDFLAGS+=-static INCLUDE+=-Iinclude
