Skip to content

Commit a33ee00

Browse files
html fixes
1 parent b5a4a3c commit a33ee00

File tree

1 file changed

+2
-2
lines changed
  • core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io

1 file changed

+2
-2
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io/html.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ public class DataFrameHtmlData(
761761
)
762762

763763
public fun writeHtml(destination: File) {
764-
writeHtml(destination.toPath())
764+
destination.writeText(toString())
765765
}
766766

767767
public fun writeHtml(destination: String) {
@@ -774,7 +774,7 @@ public class DataFrameHtmlData(
774774

775775
@Deprecated(WRITE_HTML, ReplaceWith(WRITE_HTML_REPLACE), DeprecationLevel.ERROR)
776776
public fun writeHTML(destination: File) {
777-
writeHtml(destination.toPath())
777+
destination.writeText(toString())
778778
}
779779

780780
@Deprecated(WRITE_HTML, ReplaceWith(WRITE_HTML_REPLACE), DeprecationLevel.ERROR)

0 commit comments

Comments
 (0)