JuliaWeb / JuliaWeb/Hyperscript.jl

savehtml adds an extra html tag

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
105
Forks
12
PR merge metrics
No merged PRs in 30d

Description

## Problem

When calling `savehtml()` it adds an extra layer of `` on top of what is already there.

## To reproduce:

```
julia> using Hyperscript

julia> doc1 = m("html", m("h1", "Hello"))

Hello

julia> savehtml("/tmp/doc1.html", doc1) ## html html
56

shell> cat /tmp/doc1.html

Hello


```

## Expected behavior

I would expect the content of the file written by `savehtml` to be the same as printed, except for an added doctype.

## Versions

```
(@v1.6) pkg> status Hyperscript
Status `~/.julia/environments/v1.6/Project.toml`
[47d2ed2b] Hyperscript v0.0.4

julia> versioninfo()
Julia Version 1.6.1
Commit 6aaedecc44 (2021-04-23 05:59 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, skylake)

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.