author | wenzelm |
Mon, 22 Nov 2021 23:08:57 +0100 | |
changeset 74830 | 40bb5f41e06c |
parent 74829 | f31229171b3b |
child 74831 | 32490add64b4 |
--- a/src/Pure/Tools/scala_project.scala Mon Nov 22 16:49:58 2021 +0100 +++ b/src/Pure/Tools/scala_project.scala Mon Nov 22 23:08:57 2021 +0100 @@ -143,7 +143,7 @@ def package_name(source_file: Path): Option[String] = { - val lines = split_lines(File.read(source_file)) + val lines = Library.trim_split_lines(File.read(source_file)) val Package = """\s*\bpackage\b\s*(?:object\b\s*)?((?:\w|\.)+)\b.*""".r lines.collectFirst({ case Package(name) => name }) }