Hello community,

here is the log from the commit of package svgcleaner for openSUSE:Factory 
checked in at 2018-10-17 08:39:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/svgcleaner (Old)
 and      /work/SRC/openSUSE:Factory/.svgcleaner.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "svgcleaner"

Wed Oct 17 08:39:18 2018 rev:6 rq:641632 version:0.9.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/svgcleaner/svgcleaner.changes    2018-06-19 
12:01:14.355432531 +0200
+++ /work/SRC/openSUSE:Factory/.svgcleaner.new/svgcleaner.changes       
2018-10-17 08:41:02.201874668 +0200
@@ -1,0 +2,12 @@
+Wed Oct 10 20:14:52 UTC 2018 - so...@opensuse.org
+
+- update to v0.9.5
+  * removal of the transform attribute with a default value
+  * a default Transform will be printed as matrix(1 0 0 1 0)
+    and not as an empty string
+  * attributes resolving during the defs regrouping
+  * text with xml:space preprocessing
+- update vendored sources
+- refreshed svgcleaner-gui-suse.patch
+
+-------------------------------------------------------------------

Old:
----
  gui-v0.9.4.tar.gz
  v0.9.4.tar.gz

New:
----
  gui-v0.9.5.tar.gz
  v0.9.5.tar.gz

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

Other differences:
------------------
++++++ svgcleaner.spec ++++++
--- /var/tmp/diff_new_pack.VtNXSF/_old  2018-10-17 08:41:07.261870343 +0200
+++ /var/tmp/diff_new_pack.VtNXSF/_new  2018-10-17 08:41:07.261870343 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           svgcleaner
-Version:        0.9.4
+Version:        0.9.5
 Release:        0
 Summary:        A software to remove unnecessary data from SVG files
 License:        GPL-2.0-only

++++++ gui-v0.9.4.tar.gz -> gui-v0.9.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/svgcleaner-gui-0.9.4/data/changelog.html 
new/svgcleaner-gui-0.9.5/data/changelog.html
--- old/svgcleaner-gui-0.9.4/data/changelog.html        2018-03-22 
15:49:23.000000000 +0100
+++ new/svgcleaner-gui-0.9.5/data/changelog.html        2018-04-10 
16:13:35.000000000 +0200
@@ -1,4 +1,25 @@
-<h3>0.9.4</h3>
+<h2>0.9.5</h2>
+
+<h4>Added:</h4>
+
+<ul>
+<li>Removal of the <code>transform</code> attribute with a default value.</li>
+</ul>
+
+<h4>Changed:</h4>
+
+<ul>
+<li>A default <code>Transform</code> will be printed as <code>matrix(1 0 0 1 
0)</code> and not as an empty string.</li>
+</ul>
+
+<h4>Fixed:</h4>
+
+<ul>
+<li>Attributes resolving during the <code>defs</code> regrouping.</li>
+<li>Text with <code>xml:space</code> preprocessing.</li>
+</ul>
+
+<h2>0.9.4</h2>
 
 <h4>Changed:</h4>
 
@@ -14,7 +35,7 @@
 <li>Elements -&gt; <em>Resolve &#39;use&#39; elements</em> does not resolve 
used <code>use</code> now.</li>
 </ul>
 
-<h3>0.9.3</h3>
+<h2>0.9.3</h2>
 
 <h4>Added:</h4>
 
@@ -41,7 +62,7 @@
 <li>Fixed paths preprocessing.</li>
 </ul>
 
-<h3>0.9.2</h3>
+<h2>0.9.2</h2>
 
 <h4>Added:</h4>
 
@@ -62,7 +83,7 @@
 <li>HiDPI support in GUI.</li>
 </ul>
 
-<h3>0.9.1</h3>
+<h2>0.9.1</h2>
 
 <h4>Changed:</h4>
 
@@ -80,7 +101,7 @@
 <li>Paths settings saving</li>
 </ul>
 
-<h3>0.9.0</h3>
+<h2>0.9.0</h2>
 
 <h4>Added:</h4>
 
@@ -103,7 +124,7 @@
 <li><code>stroke-dasharray</code> and <code>stroke-dashoffset</code> 
processing during transformations applying</li>
 </ul>
 
-<h3>0.8.1</h3>
+<h2>0.8.1</h2>
 
 <h4>Added:</h4>
 
@@ -119,7 +140,7 @@
 <li>Processing gradients with one stop children</li>
 </ul>
 
-<h3>0.8.0</h3>
+<h2>0.8.0</h2>
 
 <h4>Added:</h4>
 
@@ -148,7 +169,7 @@
 <li>Attributes -&gt; Move presentational attributes to the parent group</li>
 </ul>
 
-<h3>0.7.1</h3>
+<h2>0.7.1</h2>
 
 <h4>Added:</h4>
 
@@ -177,7 +198,7 @@
 <li>Time column</li>
 </ul>
 
-<h3>0.7.0</h3>
+<h2>0.7.0</h2>
 
 <ul>
 <li>Initial release</li>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/svgcleaner-gui-0.9.4/data/changelog.md 
new/svgcleaner-gui-0.9.5/data/changelog.md
--- old/svgcleaner-gui-0.9.4/data/changelog.md  2018-03-22 15:49:23.000000000 
+0100
+++ new/svgcleaner-gui-0.9.5/data/changelog.md  2018-04-10 16:13:35.000000000 
+0200
@@ -1,4 +1,15 @@
-### 0.9.4
+## 0.9.5
+#### Added:
+ - Removal of the `transform` attribute with a default value.
+
+#### Changed:
+ - A default `Transform` will be printed as `matrix(1 0 0 1 0)` and not as an 
empty string.
+
+#### Fixed:
+ - Attributes resolving during the `defs` regrouping.
+ - Text with `xml:space` preprocessing.
+
+## 0.9.4
 #### Changed:
  - Documentation formatting.
 
@@ -7,7 +18,7 @@
  - Crash during `use` resolving.
  - Elements -> *Resolve 'use' elements* does not resolve used `use` now.
 
-### 0.9.3
+## 0.9.3
 #### Added:
  - Output -> Number list separator
  - The `marker` attribute removing.
@@ -24,7 +35,7 @@
  - The value of the `unicode` attribute is always escaped now.
  - Fixed paths preprocessing.
 
-### 0.9.2
+## 0.9.2
 #### Added:
  - Elements -> *Group elements by equal styles* can group two nodes now.
  - Elements -> *Group elements by equal styles* can group into `svg` node now.
@@ -38,7 +49,7 @@
  - Attributes -> *Remove unresolved classes from `class` attributes* option 
had no effect.
  - HiDPI support in GUI.
 
-### 0.9.1
+## 0.9.1
 #### Changed:
  - Unresolved inherited attributes will produce a warning and not error now
 
@@ -49,8 +60,7 @@
  - Additional whitespace during ArcTo writing
  - Paths settings saving
 
-### 0.9.0
-
+## 0.9.0
 #### Added:
  - Option changes are highlighted now
  - Main -> Copy on error
@@ -66,8 +76,7 @@
 #### Fixed:
  - `stroke-dasharray` and `stroke-dashoffset` processing during 
transformations applying
 
-### 0.8.1
-
+## 0.8.1
 #### Added:
  - Elements -> *Group elements by equal styles* can group by `transform` now
  - `overflow` attribute cleaning
@@ -76,8 +85,7 @@
  - Incorrect grouping in Elements -> *Group elements by equal styles*
  - Processing gradients with one stop children
 
-### 0.8.0
-
+## 0.8.0
 #### Added:
  - Elements -> Group elements by equal styles
  - Elements -> Resolve 'use' elements
@@ -96,8 +104,7 @@
 #### Removed:
  - Attributes -> Move presentational attributes to the parent group
 
-### 0.7.1
-
+## 0.7.1
 #### Added:
  - Attributes -> *Remove unresolved classes from 'class' attributes* option
  - Changelog tab with this text
@@ -113,6 +120,5 @@
 #### Removed:
  - Time column
 
-### 0.7.0
-
+## 0.7.0
  - Initial release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/svgcleaner-gui-0.9.4/src/main.cpp 
new/svgcleaner-gui-0.9.5/src/main.cpp
--- old/svgcleaner-gui-0.9.4/src/main.cpp       2018-03-22 15:49:23.000000000 
+0100
+++ new/svgcleaner-gui-0.9.5/src/main.cpp       2018-04-10 16:13:35.000000000 
+0200
@@ -36,7 +36,9 @@
 
 int main(int argc, char *argv[])
 {
-    const QVersionNumber ver(0, 9, 4);
+    const QVersionNumber ver(0, 9, 5);
+
+    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
 
     QApplication a(argc, argv);
     a.setApplicationName("SVG Cleaner");

++++++ svgcleaner-gui-suse.patch ++++++
--- /var/tmp/diff_new_pack.VtNXSF/_old  2018-10-17 08:41:07.353870264 +0200
+++ /var/tmp/diff_new_pack.VtNXSF/_new  2018-10-17 08:41:07.353870264 +0200
@@ -1,4 +1,4 @@
-Index: svgcleaner-0.9.4/svgcleaner-gui-0.9.4/svgcleaner.desktop
+Index: svgcleaner-0.9.5/svgcleaner-gui-0.9.5/svgcleaner.desktop
 ===================================================================
 --- svgcleaner.desktop.orig
 +++ svgcleaner.desktop

++++++ v0.9.4.tar.gz -> v0.9.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/svgcleaner-0.9.4/CHANGELOG.md 
new/svgcleaner-0.9.5/CHANGELOG.md
--- old/svgcleaner-0.9.4/CHANGELOG.md   2018-03-22 15:53:31.000000000 +0100
+++ new/svgcleaner-0.9.5/CHANGELOG.md   2018-04-10 15:54:52.000000000 +0200
@@ -6,6 +6,13 @@
 
 ## [Unreleased]
 
+## [0.9.5] - 2018-04-09
+### Added
+- Removal of the `transform` attribute with a default value.
+
+### Fixed
+- Attributes resolving during the `defs` regrouping.
+
 ## [0.9.4] - 2018-03-22
 ### Fixed
 - Crash during `defs` processing.
@@ -266,7 +273,8 @@
 ### Added
 - First public release with Perl backend and Qt GUI.
 
-[Unreleased]: https://github.com/RazrFalcon/svgcleaner/compare/v0.9.4...HEAD
+[Unreleased]: https://github.com/RazrFalcon/svgcleaner/compare/v0.9.5...HEAD
+[0.9.5]: https://github.com/RazrFalcon/svgcleaner/compare/v0.9.4...v0.9.5
 [0.9.4]: https://github.com/RazrFalcon/svgcleaner/compare/v0.9.3...v0.9.4
 [0.9.3]: https://github.com/RazrFalcon/svgcleaner/compare/v0.9.2...v0.9.3
 [0.9.2]: https://github.com/RazrFalcon/svgcleaner/compare/v0.9.1...v0.9.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/svgcleaner-0.9.4/Cargo.toml 
new/svgcleaner-0.9.5/Cargo.toml
--- old/svgcleaner-0.9.4/Cargo.toml     2018-03-22 15:53:31.000000000 +0100
+++ new/svgcleaner-0.9.5/Cargo.toml     2018-04-10 15:54:52.000000000 +0200
@@ -1,6 +1,6 @@
 [package]
 name = "svgcleaner"
-version = "0.9.4"
+version = "0.9.5"
 authors = ["Evgeniy Reizner <razrfal...@gmail.com>"]
 keywords = ["svg", "cleaner", "optimizer"]
 license = "GPL-2.0"
@@ -35,7 +35,7 @@
 # local copy
 # path = "../svgdom"
 # from crates
-version = "0.10"
+version = "0.10.5"
 
 [dependencies.error-chain]
 version = "0.11"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/svgcleaner-0.9.4/src/cleaner.rs 
new/svgcleaner-0.9.5/src/cleaner.rs
--- old/svgcleaner-0.9.4/src/cleaner.rs 2018-03-22 15:53:31.000000000 +0100
+++ new/svgcleaner-0.9.5/src/cleaner.rs 2018-04-10 15:54:52.000000000 +0200
@@ -239,6 +239,8 @@
     remove_empty_defs(doc);
     fix_xmlns_attribute(doc, options.remove_xmlns_xlink_attribute);
 
+    remove_default_transform(doc);
+
     // NOTE: Must be run at last, since it breaks the linking.
     join_style_attributes(doc, options.join_style_attributes, opt);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/svgcleaner-0.9.4/src/task/group_defs.rs 
new/svgcleaner-0.9.5/src/task/group_defs.rs
--- old/svgcleaner-0.9.4/src/task/group_defs.rs 2018-03-22 15:53:31.000000000 
+0100
+++ new/svgcleaner-0.9.5/src/task/group_defs.rs 2018-04-10 15:54:52.000000000 
+0200
@@ -105,8 +105,8 @@
         | EId::Mask
         | EId::Pattern
         | EId::Symbol => {
-            let mut parent = node.clone();
-            while let Some(p) = parent.parent() {
+            let mut parent = Some(node.clone());
+            while let Some(p) = parent {
                 let attrs = p.attributes();
                 for (aid, attr) in attrs.iter_svg().filter(|&(_, a)| 
a.is_inheritable()) {
                     for mut child in node.children() {
@@ -118,7 +118,7 @@
                     }
                 }
 
-                parent = p.clone();
+                parent = p.parent();
             }
         }
         _ => {}
@@ -320,4 +320,22 @@
 </svg>
 ");
 
+    test!(move_attrs_3,
+"<svg>
+    <g fill='none'>
+        <mask fill='#ff0000'>
+            <path/>
+        </mask>
+    </g>
+</svg>",
+"<svg>
+    <defs>
+        <mask fill='#ff0000'>
+            <path fill='#ff0000'/>
+        </mask>
+    </defs>
+    <g fill='none'/>
+</svg>
+");
+
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/svgcleaner-0.9.4/src/task/mod.rs 
new/svgcleaner-0.9.5/src/task/mod.rs
--- old/svgcleaner-0.9.4/src/task/mod.rs        2018-03-22 15:53:31.000000000 
+0100
+++ new/svgcleaner-0.9.5/src/task/mod.rs        2018-04-10 15:54:52.000000000 
+0200
@@ -24,12 +24,13 @@
 pub use self::join_style_attrs::join_style_attributes;
 pub use self::merge_gradients::merge_gradients;
 pub use self::preclean_checks::preclean_checks;
-pub use self::rm_default_attrs::remove_default_attributes;
-pub use self::rm_dupl_defs::*;
 pub use self::regroup_gradient_stops::regroup_gradient_stops;
-pub use self::resolve_inherit::resolve_inherit;
 pub use self::resolve_gradients::*;
+pub use self::resolve_inherit::resolve_inherit;
 pub use self::resolve_use::resolve_use;
+pub use self::rm_default_attrs::remove_default_attributes;
+pub use self::rm_default_transform::remove_default_transform;
+pub use self::rm_dupl_defs::*;
 pub use self::rm_elems::remove_element;
 pub use self::rm_gradient_attrs::remove_gradient_attributes;
 pub use self::rm_invalid_stops::remove_invalid_stops;
@@ -57,10 +58,11 @@
 mod merge_gradients;
 mod preclean_checks;
 mod regroup_gradient_stops;
-mod resolve_inherit;
 mod resolve_gradients;
+mod resolve_inherit;
 mod resolve_use;
 mod rm_default_attrs;
+mod rm_default_transform;
 mod rm_dupl_defs;
 mod rm_elems;
 mod rm_gradient_attrs;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/svgcleaner-0.9.4/src/task/rm_default_transform.rs 
new/svgcleaner-0.9.5/src/task/rm_default_transform.rs
--- old/svgcleaner-0.9.4/src/task/rm_default_transform.rs       1970-01-01 
01:00:00.000000000 +0100
+++ new/svgcleaner-0.9.5/src/task/rm_default_transform.rs       2018-04-10 
15:54:52.000000000 +0200
@@ -0,0 +1,32 @@
+// svgcleaner could help you to clean up your SVG files
+// from unnecessary data.
+// Copyright (C) 2012-2018 Evgeniy Reizner
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this program; if not, write to the Free Software Foundation, Inc.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+use svgdom::{Document, AttributeValue};
+
+use task::short::AId;
+
+pub fn remove_default_transform(doc: &Document) {
+    for mut node in doc.descendants() {
+        let av = node.attributes().get_value(AId::Transform).cloned();
+        if let Some(AttributeValue::Transform(ts)) = av {
+            if ts.is_default() {
+                node.remove_attribute(AId::Transform);
+            }
+        }
+    }
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/svgcleaner-0.9.4/src/task/rm_text_attrs.rs 
new/svgcleaner-0.9.5/src/task/rm_text_attrs.rs
--- old/svgcleaner-0.9.4/src/task/rm_text_attrs.rs      2018-03-22 
15:53:31.000000000 +0100
+++ new/svgcleaner-0.9.5/src/task/rm_text_attrs.rs      2018-04-10 
15:54:52.000000000 +0200
@@ -344,9 +344,7 @@
     <defs>
         <text id='hello'>Hello</text>
     </defs>
-    <text font-family='Verdana'>
-        <tref xlink:href='#hello'/>
-    </text>
+    <text font-family='Verdana'><tref xlink:href='#hello'/></text>
 </svg>
 ");
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/svgcleaner-0.9.4/src/task/rm_unused_defs.rs 
new/svgcleaner-0.9.5/src/task/rm_unused_defs.rs
--- old/svgcleaner-0.9.4/src/task/rm_unused_defs.rs     2018-03-22 
15:53:31.000000000 +0100
+++ new/svgcleaner-0.9.5/src/task/rm_unused_defs.rs     2018-04-10 
15:54:52.000000000 +0200
@@ -204,9 +204,7 @@
     <defs>
         <text id='hello'>Hello</text>
     </defs>
-    <text>
-        <tref xlink:href='#hello'/>
-    </text>
+    <text><tref xlink:href='#hello'/></text>
 </svg>
 ");
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/svgcleaner-0.9.4/tools/svgrender/.gitignore 
new/svgcleaner-0.9.5/tools/svgrender/.gitignore
--- old/svgcleaner-0.9.4/tools/svgrender/.gitignore     1970-01-01 
01:00:00.000000000 +0100
+++ new/svgcleaner-0.9.5/tools/svgrender/.gitignore     2018-04-10 
15:54:52.000000000 +0200
@@ -0,0 +1,2 @@
+/node_modules/
+package-lock.json

++++++ vendor.tar.xz ++++++
++++ 76877 lines of diff (skipped)


Reply via email to