Skip to content

Indented line wrapping only working with tabs #3437

@abhro

Description

@abhro

If a line is indented with tabs, the hanging indents work just fine. But if spaces are used, the line wraps to the start of the line and doesn't maintain the visual indent.

Image
Code for minimal working example:
### A Pluto.jl notebook ###
# v0.20.21

using Markdown
using InteractiveUtils

# ╔═╡ cd637184-e736-11f0-b7dc-15c90f7670a8
	"This is a very long line. I have created this line for the express purpose of being very long and overflowing the viewport. I have also started this line with a tab to show the hanging indent."

# ╔═╡ bf677b4e-e23b-4adb-b756-1abaec186d86
    "This is another very long line. I have also created this line for the express purpose of being very long and overflowing the viewport. But I have started this line with (4) spaces to show the lack of hanging indent."

# ╔═╡ 00000000-0000-0000-0000-000000000001
PLUTO_PROJECT_TOML_CONTENTS = """
[deps]
"""

# ╔═╡ 00000000-0000-0000-0000-000000000002
PLUTO_MANIFEST_TOML_CONTENTS = """
# This file is machine-generated - editing it directly is not advised

julia_version = "1.12.3"
manifest_format = "2.0"
project_hash = "71853c6197a6a7f222db0f1978c7cb232b87c5ee"

[deps]
"""

# ╔═╡ Cell order:
# ╠═cd637184-e736-11f0-b7dc-15c90f7670a8
# ╠═bf677b4e-e23b-4adb-b756-1abaec186d86
# ╟─00000000-0000-0000-0000-000000000001
# ╟─00000000-0000-0000-0000-000000000002

Metadata

Metadata

Assignees

No one assigned

    Labels

    CM6CodeMirror 6frontendConcerning the HTML editorgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions