Add output of Scheme in problem.inc template if it is defined.
authorJason Stephenson <jason@sigio.com>
Sun, 17 Aug 2014 14:39:12 +0000 (10:39 -0400)
committerJason Stephenson <jason@sigio.com>
Sun, 17 Aug 2014 15:00:42 +0000 (11:00 -0400)
Signed-off-by: Jason Stephenson <jason@sigio.com>
templates/includes/problem.inc

index c55c73b..2fd57db 100644 (file)
@@ -1,5 +1,9 @@
 <Problem>
+[% IF problem.Scheme -%]
+<ProblemType Scheme="[% problem.Scheme | xml %]">
+[% ELSE -%]
 <ProblemType>
+[% END -%]
 [% problem.ProblemType | xml %]
 </ProblemType>
 <ProblemDetail>