#61 make handling of lists in wordwrap a little smarter, to get something structured enough it can convert to AppStream metadata
Closed 3 months ago by nim. Opened 3 months ago by nim.
rpms/ nim/redhat-rpm-config tweak-wordwrap  into  master

file modified
+5 -1

@@ -154,7 +154,11 @@ 

          wl = bad

        end

        if (pos == 0) then

-         advance = string.gsub(word, "^(%s*).*", "%1")

+         advance, n = string.gsub(word, "^(%s*– ).*", "%1")

+         if (n == 0) then

+           advance = string.gsub(word, "^(%s*).*", "%1")

+         end

+         advance = string.gsub(advance, "– ", "  ")

          pos = pos + wl

        elseif  (pos + wl < 81) then

          pos = pos + wl

file modified
+4 -1

@@ -6,7 +6,7 @@ 

  

  Summary: Red Hat specific rpm configuration files

  Name: redhat-rpm-config

- Version: 134

+ Version: 135

  Release: 1%{?dist}

  # No version specified.

  License: GPL+

@@ -202,6 +202,9 @@ 

  %{_rpmconfigdir}/macros.d/macros.kmp

  

  %changelog

+ * Mon Jul 08 2019 Nicolas Mailhot <nim@fedoraproject.org> - 135-1

+ - Make list indenting in %%wordwrap smarter

+ 

  * Mon Jul 01 2019 Florian Festi <ffesti@redhat.com> - 134-1

  - Switch binary payload compression to Zstandard level 19

  

no initial comment

rebased onto f742de0

3 months ago

Pull-Request has been closed by nim

3 months ago
Metadata