Bug Fix - description in filter

- The description attribute may now be used in a filter.
This commit is contained in:
Paul Beckingham 2009-06-16 00:30:56 -04:00
parent 6a77d61faa
commit db0d85f5e7

View file

@ -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")