mirror of
https://github.com/typst/typst
synced 2025-08-25 04:04:12 +08:00
Compare commits
No commits in common. "f2f527c451b1b05b393af99b89c528aadb203ce6" and "70399a94fd58cc5e3e953c10670c396de8f7f6f7" have entirely different histories.
f2f527c451
...
70399a94fd
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -81,7 +81,6 @@ jobs:
|
|||||||
- run: cargo clippy --workspace --all-targets --no-default-features
|
- run: cargo clippy --workspace --all-targets --no-default-features
|
||||||
- run: cargo fmt --check --all
|
- run: cargo fmt --check --all
|
||||||
- run: cargo doc --workspace --no-deps
|
- run: cargo doc --workspace --no-deps
|
||||||
- run: git diff --exit-code
|
|
||||||
|
|
||||||
min-version:
|
min-version:
|
||||||
name: Check minimum Rust version
|
name: Check minimum Rust version
|
||||||
|
@ -113,7 +113,7 @@ fn write_element(w: &mut Writer, element: &HtmlElement) -> SourceResult<()> {
|
|||||||
/// Encodes the children of an element.
|
/// Encodes the children of an element.
|
||||||
fn write_children(w: &mut Writer, element: &HtmlElement) -> SourceResult<()> {
|
fn write_children(w: &mut Writer, element: &HtmlElement) -> SourceResult<()> {
|
||||||
// See HTML spec § 13.1.2.5.
|
// See HTML spec § 13.1.2.5.
|
||||||
if matches!(element.tag, tag::pre | tag::textarea) && starts_with_newline(element) {
|
if element.tag == tag::pre && starts_with_newline(element) {
|
||||||
w.buf.push('\n');
|
w.buf.push('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
</head>
|
|
||||||
<body><textarea>
|
|
||||||
|
|
||||||
enter</textarea></body>
|
|
||||||
</html>
|
|
@ -11,9 +11,6 @@
|
|||||||
#html.pre("\nhello")
|
#html.pre("\nhello")
|
||||||
#html.pre("\n\nhello")
|
#html.pre("\n\nhello")
|
||||||
|
|
||||||
--- html-textarea-starting-with-newline html ---
|
|
||||||
#html.textarea("\nenter")
|
|
||||||
|
|
||||||
--- html-script html ---
|
--- html-script html ---
|
||||||
// This should be pretty and indented.
|
// This should be pretty and indented.
|
||||||
#html.script(
|
#html.script(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user