From db0d85f5e77c6b7e8f64fa50756e8b0d20107296 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 16 Jun 2009 00:30:56 -0400 Subject: [PATCH] Bug Fix - description in filter - The description attribute may now be used in a filter. --- src/Att.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Att.cpp b/src/Att.cpp index 36d916c76..44ca8202e 100644 --- a/src/Att.cpp +++ b/src/Att.cpp @@ -317,8 +317,14 @@ bool Att::validNameValue ( else if (name == "description") { - if (value != "" || !noVerticalSpace (value)) - throw std::string ("The '") + name + "' attribute must not be blank, and must not contain vertical white space."; + if (context.cmd.isWriteCommand ()) + { + if (value == "") + throw std::string ("The '") + name + "' attribute must not be blank."; + + if (!noVerticalSpace (value)) + throw std::string ("The '") + name + "' attribute must not contain vertical white space."; + } } else if (name == "fg" || name == "bg")