mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-05 10:59:33 +00:00
ScalafmtAll
This commit is contained in:
parent
2e88207ff1
commit
56624515a5
@ -98,7 +98,6 @@ object Conversion {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
object Office {
|
object Office {
|
||||||
val odt = MimeType.application("vnd.oasis.opendocument.text")
|
val odt = MimeType.application("vnd.oasis.opendocument.text")
|
||||||
val ods = MimeType.application("vnd.oasis.opendocument.spreadsheet")
|
val ods = MimeType.application("vnd.oasis.opendocument.spreadsheet")
|
||||||
@ -140,9 +139,9 @@ object Conversion {
|
|||||||
|
|
||||||
def unapply(mt: MimeType): Option[MimeType] =
|
def unapply(mt: MimeType): Option[MimeType] =
|
||||||
mt match {
|
mt match {
|
||||||
case Office(_) => Some(mt)
|
case Office(_) => Some(mt)
|
||||||
case MimeType.TextAllMatch(_) => Some(mt)
|
case MimeType.TextAllMatch(_) => Some(mt)
|
||||||
case MimeType.ImageMatch(_) => Some(mt)
|
case MimeType.ImageMatch(_) => Some(mt)
|
||||||
case _ => None
|
case _ => None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -82,9 +82,7 @@ object TextExtraction {
|
|||||||
.getOrElse(Mimetype.`application/octet-stream`)
|
.getOrElse(Mimetype.`application/octet-stream`)
|
||||||
|
|
||||||
findMime
|
findMime
|
||||||
.flatMap(mt =>
|
.flatMap(mt => extr.extractText(data, DataType(mt.toLocal), lang))
|
||||||
extr.extractText(data, DataType(mt.toLocal), lang)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private def extractTextFallback[F[_]: Sync: ContextShift](
|
private def extractTextFallback[F[_]: Sync: ContextShift](
|
||||||
|
@ -5,7 +5,6 @@ import docspell.common._
|
|||||||
|
|
||||||
object MimeTypes {
|
object MimeTypes {
|
||||||
|
|
||||||
|
|
||||||
implicit final class BitpeaceMimeTypeOps(bmt: Mimetype) {
|
implicit final class BitpeaceMimeTypeOps(bmt: Mimetype) {
|
||||||
|
|
||||||
def toLocal: MimeType =
|
def toLocal: MimeType =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user