equal
deleted
inserted
replaced
490 case "" | "false" => false |
490 case "" | "false" => false |
491 case "pdf" => true |
491 case "pdf" => true |
492 case doc => error("Bad document specification " + quote(doc)) |
492 case doc => error("Bad document specification " + quote(doc)) |
493 } |
493 } |
494 |
494 |
495 def documents_variants: List[Present.Document_Variant] = |
495 def documents_variants: List[Presentation.Document_Variant] = |
496 { |
496 { |
497 val variants = |
497 val variants = |
498 Library.space_explode(':', options.string("document_variants")). |
498 Library.space_explode(':', options.string("document_variants")). |
499 map(Present.Document_Variant.parse) |
499 map(Presentation.Document_Variant.parse) |
500 |
500 |
501 val dups = Library.duplicates(variants.map(_.name)) |
501 val dups = Library.duplicates(variants.map(_.name)) |
502 if (dups.nonEmpty) error("Duplicate document variants: " + commas_quote(dups)) |
502 if (dups.nonEmpty) error("Duplicate document variants: " + commas_quote(dups)) |
503 |
503 |
504 variants |
504 variants |
505 } |
505 } |
506 |
506 |
507 def documents: List[Present.Document_Variant] = |
507 def documents: List[Presentation.Document_Variant] = |
508 { |
508 { |
509 val variants = documents_variants |
509 val variants = documents_variants |
510 if (!document_enabled || document_files.isEmpty) Nil else variants |
510 if (!document_enabled || document_files.isEmpty) Nil else variants |
511 } |
511 } |
512 |
512 |