Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package scdoc for openSUSE:Factory checked in at 2026-07-09 22:18:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/scdoc (Old) and /work/SRC/openSUSE:Factory/.scdoc.new.1991 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "scdoc" Thu Jul 9 22:18:27 2026 rev:21 rq:1364505 version:1.11.5 Changes: -------- --- /work/SRC/openSUSE:Factory/scdoc/scdoc.changes 2025-11-13 17:26:25.488705298 +0100 +++ /work/SRC/openSUSE:Factory/.scdoc.new.1991/scdoc.changes 2026-07-09 22:18:39.992670174 +0200 @@ -1,0 +2,7 @@ +Wed Jul 8 06:44:12 UTC 2026 - Michael Vetter <[email protected]> + +- Update to 1.11.5: + * Substitute "-" with "\-" + * Fix bold text followed by underlined text + +------------------------------------------------------------------- Old: ---- 1.11.4.tar.gz New: ---- 1.11.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ scdoc.spec ++++++ --- /var/tmp/diff_new_pack.tFgb2i/_old 2026-07-09 22:18:41.168710211 +0200 +++ /var/tmp/diff_new_pack.tFgb2i/_new 2026-07-09 22:18:41.184710756 +0200 @@ -1,7 +1,7 @@ # # spec file for package scdoc # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: scdoc -Version: 1.11.4 +Version: 1.11.5 Release: 0 Summary: A man page generator written in C99 License: MIT ++++++ 1.11.4.tar.gz -> 1.11.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.11.4/Makefile new/scdoc-1.11.5/Makefile --- old/scdoc-1.11.4/Makefile 2025-11-11 15:37:36.000000000 +0100 +++ new/scdoc-1.11.5/Makefile 2026-07-07 09:06:57.000000000 +0200 @@ -1,4 +1,4 @@ -VERSION=1.11.4 +VERSION=1.11.5 CFLAGS?=-g MAINFLAGS:=-DVERSION='"$(VERSION)"' -Wall -Wextra -Werror -Wno-unused-parameter INCLUDE+=-Iinclude diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.11.4/src/main.c new/scdoc-1.11.5/src/main.c --- old/scdoc-1.11.4/src/main.c 2025-11-11 15:37:36.000000000 +0100 +++ new/scdoc-1.11.5/src/main.c 2026-07-07 09:06:57.000000000 +0200 @@ -57,6 +57,11 @@ } else if (ch == '\n') { parser_fatal(p, "Unclosed extra preamble field"); break; + } else if (ch == '-') { + ret = str_append_ch(extra, '\\'); + assert(ret != -1); + ret = str_append_ch(extra, '-'); + assert(ret != -1); } else { ret = str_append_ch(extra, ch); assert(ret != -1); @@ -109,6 +114,10 @@ while ((ch = parser_getch(p)) != UTF8_INVALID) { if ((ch < 0x80 && isalnum((unsigned char)ch)) || ch == '_' || ch == '-' || ch == '.') { + if (ch == '-') { + int ret = str_append_ch(name, '\\'); + assert(ret != -1); + } int ret = str_append_ch(name, ch); assert(ret != -1); } else if (ch == '(') { @@ -127,7 +136,15 @@ } char *ex2 = extras[0] != NULL ? extras[0]->str : NULL; char *ex3 = extras[1] != NULL ? extras[1]->str : NULL; - fprintf(p->output, ".TH \"%s\" \"%s\" \"%s\"", name->str, section->str, date); + fprintf(p->output, ".TH \"%s\" \"%s\" \"", name->str, section->str); + for (char *c = date; *c; ++c) { + if (*c == '-') { + fprintf(p->output, "\\-"); + } else { + fputc(*c, p->output); + } + } + fprintf(p->output, "\""); /* ex2 and ex3 are already double-quoted */ if (ex2) { fprintf(p->output, " %s", ex2); @@ -225,6 +242,7 @@ break; case '*': parse_format(p, FORMAT_BOLD); + last = '*'; break; case '_': next = parser_getch(p); @@ -278,6 +296,10 @@ // Escape ^ to not render it with U+02C6 fprintf(p->output, "\\(ha"); break; + case '-': + // Escape - to not render it with U+2010 + fprintf(p->output, "\\-"); + break; default: last = ch; utf8_fputch(p->output, ch); @@ -311,7 +333,11 @@ break; } while ((ch = parser_getch(p)) != UTF8_INVALID) { - utf8_fputch(p->output, ch); + if (ch == '-') { + fprintf(p->output, "\\-"); + } else { + utf8_fputch(p->output, ch); + } if (ch == '\n') { break; } @@ -434,6 +460,9 @@ case '.': fprintf(p->output, "\\&."); break; + case '-': + fprintf(p->output, "\\-"); + break; case '\'': fprintf(p->output, "\\&'"); break; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.11.4/test/character-substitute new/scdoc-1.11.5/test/character-substitute --- old/scdoc-1.11.4/test/character-substitute 2025-11-11 15:37:36.000000000 +0100 +++ new/scdoc-1.11.5/test/character-substitute 2026-07-07 09:06:57.000000000 +0200 @@ -16,3 +16,11 @@ _hello^_ EOF end 0 + +begin "Substitute - with \\-" +scdoc <<EOF | grep 'hello \\-\\-world \\-1 long\\-term' >/dev/null +test(8) + +hello --world -1 long-term +EOF +end 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.11.4/test/heading new/scdoc-1.11.5/test/heading --- old/scdoc-1.11.4/test/heading 2025-11-11 15:37:36.000000000 +0100 +++ new/scdoc-1.11.5/test/heading 2026-07-07 09:06:57.000000000 +0200 @@ -32,3 +32,11 @@ ## HEADER EOF end 0 + +begin "Escapes hyphens in headings" +scdoc <<EOF | grep '^\.SH HEADING \\-\\-head \\-h 2026\\-02\\-11' >/dev/null +test(8) + +# HEADING --head -h 2026-02-11 +EOF +end 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.11.4/test/indent new/scdoc-1.11.5/test/indent --- old/scdoc-1.11.4/test/indent 2025-11-11 15:37:36.000000000 +0100 +++ new/scdoc-1.11.5/test/indent 2026-07-07 09:06:57.000000000 +0200 @@ -75,3 +75,13 @@ \`\`\` EOF end 1 + +begin "Escapes hyphens in literal blocks" +scdoc <<EOF | grep '^Literal: \\-\\-lit \\-l \\-2 long\\-term' >/dev/null +test(8) + +\`\`\` +Literal: --lit -l -2 long-term +\`\`\` +EOF +end 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.11.4/test/inline-formatting new/scdoc-1.11.5/test/inline-formatting --- old/scdoc-1.11.4/test/inline-formatting 2025-11-11 15:37:36.000000000 +0100 +++ new/scdoc-1.11.5/test/inline-formatting 2026-07-07 09:06:57.000000000 +0200 @@ -49,6 +49,22 @@ EOF end 0 +begin "Emits bold text followed by underlined text" +scdoc <<EOF | grep '^\\fBhello\\fR\\fIworld\\fR' >/dev/null +test(8) + +*hello*_world_ +EOF +end 0 + +begin "Emits underlined text followed by bold text" +scdoc <<EOF | grep '^\\fIhello\\fR\\fBworld\\fR' >/dev/null +test(8) + +_hello_*world* +EOF +end 0 + begin "Handles escaped characters" scdoc <<EOF | grep '^hello _world_' >/dev/null test(8) @@ -56,3 +72,11 @@ hello \_world\_ EOF end 0 + +begin "Escapes hyphens in body text" +scdoc <<EOF | grep '^Body: \\-\\-body \\-b \\-1 long\\-term' >/dev/null +test(8) + +Body: --body -b -1 long-term +EOF +end 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.11.4/test/preamble new/scdoc-1.11.5/test/preamble --- old/scdoc-1.11.4/test/preamble 2025-11-11 15:37:36.000000000 +0100 +++ new/scdoc-1.11.5/test/preamble 2026-07-07 09:06:57.000000000 +0200 @@ -63,33 +63,34 @@ # Make sure SOURCE_DATE_EPOCH is not set for the next tests unset SOURCE_DATE_EPOCH +date_escaped="$(date -u +'%F' | sed 's/-/\\\\-/g')" begin "Writes the appropriate header" -scdoc <<EOF | grep '^\.TH "test" "8" "'"$(date -u +'%F')"'"' >/dev/null +scdoc <<EOF | grep '^\.TH "test" "8" "'"${date_escaped}"'"' >/dev/null test(8) EOF end 0 -begin "Preserves dashes" -scdoc <<EOF | grep '^\.TH "test-manual" "8" "'"$(date -u +'%F')"'"' >/dev/null +begin "Preserves dashes and add escaping" +scdoc <<EOF | grep '^\.TH "test\\-manual" "8" "'"${date_escaped}"'"' >/dev/null test-manual(8) EOF end 0 begin "Handles extra footer field" -scdoc <<EOF | grep '^\.TH "test-manual" "8" "'"$(date -u +'%F')"'" "Footer"' >/dev/null +scdoc <<EOF | grep '^\.TH "test\\-manual" "8" "'"${date_escaped}"'" "Footer"' >/dev/null test-manual(8) "Footer" EOF end 0 begin "Handles both extra fields" -scdoc <<EOF | grep '^\.TH "test-manual" "8" "'"$(date -u +'%F')"'" "Footer" "Header"' >/dev/null +scdoc <<EOF | grep '^\.TH "test\\-manual" "8" "'"${date_escaped}"'" "Footer" "Header"' >/dev/null test-manual(8) "Footer" "Header" EOF end 0 begin "Emits empty footer correctly" -scdoc <<EOF | grep '^\.TH "test-manual" "8" "'"$(date -u +'%F')"'" "" "Header"' >/dev/null +scdoc <<EOF | grep '^\.TH "test\\-manual" "8" "'"${date_escaped}"'" "" "Header"' >/dev/null test-manual(8) "" "Header" EOF end 0 @@ -97,7 +98,7 @@ export SOURCE_DATE_EPOCH=1512861537 begin "Supports \$SOURCE_DATE_EPOCH" -scdoc <<EOF | grep '^\.TH "reproducible-manual" "8" "2017-12-09"' >/dev/null +scdoc <<EOF | grep '^\.TH "reproducible\\-manual" "8" "2017\\-12\\-09"' >/dev/null reproducible-manual(8) EOF end 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scdoc-1.11.4/test/tables new/scdoc-1.11.5/test/tables --- old/scdoc-1.11.4/test/tables 2025-11-11 15:37:36.000000000 +0100 +++ new/scdoc-1.11.5/test/tables 2026-07-07 09:06:57.000000000 +0200 @@ -25,3 +25,12 @@ :- EOF end 1 + +begin "Escapes hyphens in table cells" +scdoc <<EOF | grep '^\\-\\-tab \\-t \\-3 long\\-term$' >/dev/null +test(8) + +|[ --tab -t -3 long-term + +EOF +end 0
