Hello community,

here is the log from the commit of package scdoc for openSUSE:Factory checked 
in at 2019-02-04 14:26:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/scdoc (Old)
 and      /work/SRC/openSUSE:Factory/.scdoc.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "scdoc"

Mon Feb  4 14:26:08 2019 rev:2 rq:671008 version:1.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/scdoc/scdoc.changes      2019-01-28 
20:50:11.277794886 +0100
+++ /work/SRC/openSUSE:Factory/.scdoc.new.28833/scdoc.changes   2019-02-04 
14:26:12.893030931 +0100
@@ -1,0 +2,9 @@
+Mon Feb  4 09:29:54 UTC 2019 - [email protected]
+
+- Update to 1.8.0:
+  * Use a more robust approach for in-word-underscores
+  * Deal with bogus uninitialized warning (thx gcc)
+  * Ignore underscores in the middle_of_a_word
+- Update scdoc-1.6.1-makefile.patch
+
+-------------------------------------------------------------------

Old:
----
  1.6.1.tar.gz

New:
----
  1.8.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ scdoc.spec ++++++
--- /var/tmp/diff_new_pack.XMifFm/_old  2019-02-04 14:26:13.353030713 +0100
+++ /var/tmp/diff_new_pack.XMifFm/_new  2019-02-04 14:26:13.353030713 +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 https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
 Name:           scdoc
-Version:        1.6.1
+Version:        1.8.0
 Release:        0
 Summary:        A simple man page generator written for POSIX systems written 
in C99
 License:        MIT

++++++ 1.6.1.tar.gz -> 1.8.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scdoc-1.6.1/Makefile new/scdoc-1.8.0/Makefile
--- old/scdoc-1.6.1/Makefile    2019-01-20 16:25:12.000000000 +0100
+++ new/scdoc-1.8.0/Makefile    2019-01-27 17:09:10.000000000 +0100
@@ -1,4 +1,4 @@
-VERSION=1.6.1
+VERSION=1.8.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.6.1/scdoc.5.scd new/scdoc-1.8.0/scdoc.5.scd
--- old/scdoc-1.6.1/scdoc.5.scd 2019-01-20 16:25:12.000000000 +0100
+++ new/scdoc-1.8.0/scdoc.5.scd 2019-01-27 17:09:10.000000000 +0100
@@ -45,7 +45,7 @@
 ## FORMATTING
 
 Text can be made *bold* or _underlined_ with asterisks and underscores: 
\*bold\*
-or \_underlined\_.
+or \_underlined\_. Underscores in the_middle_of_words will be disregarded.
 
 ## INDENTATION
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scdoc-1.6.1/src/main.c new/scdoc-1.8.0/src/main.c
--- old/scdoc-1.6.1/src/main.c  2019-01-20 16:25:12.000000000 +0100
+++ new/scdoc-1.8.0/src/main.c  2019-01-27 17:09:10.000000000 +0100
@@ -194,7 +194,7 @@
 }
 
 static void parse_text(struct parser *p) {
-       uint32_t ch;
+       uint32_t ch, last = ' ';
        int i = 0;
        while ((ch = parser_getch(p)) != UTF8_INVALID) {
                switch (ch) {
@@ -212,7 +212,13 @@
                        parse_format(p, FORMAT_BOLD);
                        break;
                case '_':
-                       parse_format(p, FORMAT_UNDERLINE);
+                       if ((p->flags & FORMAT_UNDERLINE)) {
+                               parse_format(p, FORMAT_UNDERLINE);
+                       } else if (!p->flags && isspace(last)) {
+                               parse_format(p, FORMAT_UNDERLINE);
+                       } else {
+                               utf8_fputch(p->output, ch);
+                       }
                        break;
                case '+':
                        parse_linebreak(p);
@@ -228,6 +234,7 @@
                        }
                        /* fallthrough */
                default:
+                       last = ch;
                        utf8_fputch(p->output, ch);
                        break;
                }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/scdoc-1.6.1/test/inline-formatting 
new/scdoc-1.8.0/test/inline-formatting
--- old/scdoc-1.6.1/test/inline-formatting      2019-01-20 16:25:12.000000000 
+0100
+++ new/scdoc-1.8.0/test/inline-formatting      2019-01-27 17:09:10.000000000 
+0100
@@ -9,6 +9,22 @@
 EOF
 end 1
 
+begin "Ignores underscores in words"
+scdoc <<EOF | grep -v 'fR' >/dev/null
+test(8)
+
+hello_world
+EOF
+end 0
+
+begin "Allows underscores in bolded words"
+scdoc <<EOF | grep '^\\fBhello_world\\fR' >/dev/null
+test(8)
+
+*hello_world*
+EOF
+end 0
+
 begin "Emits bold text"
 scdoc <<EOF | grep '^hello \\fBworld\\fR' >/dev/null
 test(8)

++++++ scdoc-1.6.1-makefile.patch ++++++
--- /var/tmp/diff_new_pack.XMifFm/_old  2019-02-04 14:26:13.425030679 +0100
+++ /var/tmp/diff_new_pack.XMifFm/_new  2019-02-04 14:26:13.425030679 +0100
@@ -1,8 +1,8 @@
-diff -urEbwB scdoc-1.6.1/Makefile scdoc-1.6.1.new/Makefile
---- scdoc-1.6.1/Makefile       2019-01-20 16:25:12.000000000 +0100
-+++ scdoc-1.6.1.new/Makefile   2019-01-25 13:37:42.653049791 +0100
+diff -urEbwB scdoc-1.8.0/Makefile scdoc-1.8.0.new/Makefile
+--- 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.6.1
+ VERSION=1.8.0
  CFLAGS+=-g -DVERSION='"$(VERSION)"' -Wall -Wextra -Werror 
-Wno-unused-parameter
 -LDFLAGS+=-static
  INCLUDE+=-Iinclude


Reply via email to