[librsvg] shapes.rs: Trim whitespace from the list-of-points string before parsing it
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] shapes.rs: Trim whitespace from the list-of-points string before parsing it
- Date: Mon, 27 Feb 2017 13:39:28 +0000 (UTC)
commit 67b7c18666ccaca80bb56c0acb42d4ee5b401e84
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Feb 27 07:32:11 2017 -0600
shapes.rs: Trim whitespace from the list-of-points string before parsing it
rust/src/shapes.rs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/rust/src/shapes.rs b/rust/src/shapes.rs
index 1187596..1176a48 100644
--- a/rust/src/shapes.rs
+++ b/rust/src/shapes.rs
@@ -133,7 +133,7 @@ impl NodeTrait for NodePoly {
fn set_atts (&self, _: &RsvgNode, _: *const RsvgHandle, pbag: *const RsvgPropertyBag) {
// support for svg < 1.0 which used verts
if let Some (value) = property_bag::lookup (pbag, "verts").or (property_bag::lookup (pbag,
"points")) {
- let result = parsers::list_of_points (value.as_bytes ()).to_full_result ();
+ let result = parsers::list_of_points (value.trim ().as_bytes ()).to_full_result ();
match result {
Ok (v) => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]