+ empty = false;
+ break;
+ }
+
+ if (empty)
+ {
+ export_value(DT_STRING, ptr->option, def);
+ return;
+ }
+
+ uci_foreach_element(&opt->v.list, e)
+ {
+ if (!e->name || !*e->name)
+ continue;
+
+ if (first)
+ printf("%s=", ptr->option);
+ else
+ printf("\\ ");
+
+ first = false;
+ type = dt_parse(expr, e->name);
+
+ if (type != DT_INVALID)
+ escape_value(type, e->name);
+
+ fprintf(stderr, "%s.%s.%s[%u]=%s validates as %s with %s\n",
+ ptr->package, ptr->section, ptr->option, i++, e->name,
+ expr, type ? "true" : "false");
+ }
+
+ printf("; ");
+ }
+ else
+ {
+ if (!opt->v.string || !*opt->v.string)
+ {
+ export_value(DT_STRING, ptr->option, def);
+ return;
+ }
+
+ type = dt_parse(expr, opt->v.string);
+ export_value(type, ptr->option, opt->v.string);
+
+ fprintf(stderr, "%s.%s.%s=%s validates as %s with %s\n",
+ ptr->package, ptr->section, ptr->option, opt->v.string,
+ expr, type ? "true" : "false");
+ }