diff --git a/docs/api/custom-platform.md b/docs/api/custom-platform.md index c47c5b79..5970309a 100644 --- a/docs/api/custom-platform.md +++ b/docs/api/custom-platform.md @@ -4,6 +4,9 @@ Every platform is defined in an `.ini` file with an appropriate name. +As an extension, multiline entries are supported: +if a line ends with a backslash character, the value continues to the next line. + #### `[compilation]` section * `arch` – CPU architecture. It defines which instructions are available. Available values: diff --git a/src/main/scala/millfork/Platform.scala b/src/main/scala/millfork/Platform.scala index 234f24e8..7e36ab8c 100644 --- a/src/main/scala/millfork/Platform.scala +++ b/src/main/scala/millfork/Platform.scala @@ -176,7 +176,7 @@ object Platform { })) val os = conf.getSection("output") - val outputPackager = SequenceOutput(os.get(classOf[String], "format", "").split("[, ]+").filter(_.nonEmpty).map { + val outputPackager = SequenceOutput(os.get(classOf[String], "format", "").split("[, \n\t\r]+").filter(_.nonEmpty).map { case "startaddr" => StartAddressOutput case "startpage" => StartPageOutput case "endaddr" => EndAddressOutput