]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Allow markup-reader to accept spaces around '=' of attribute assignment
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 20 Oct 2020 22:00:53 +0000 (00:00 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 3 Jan 2021 11:50:12 +0000 (12:50 +0100)
vala/valamarkupreader.vala

index 0197320dcafab676cd0ff6e8b4efe023f4d63c22..a8f61a7c961dee4fa5f100b54344d4196b3e7b42 100644 (file)
@@ -172,10 +172,12 @@ public class Vala.MarkupReader {
                                space ();
                                while (current < end && current[0] != '>' && current[0] != '/') {
                                        string attr_name = read_name ();
+                                       space ();
                                        if (current >= end || current[0] != '=') {
                                                // error
                                        }
                                        current++;
+                                       space ();
                                        if (current >= end || current[0] != '"' || current[0] != '\'') {
                                                // error
                                        }