Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vdoc: fix character escape in code blocks in readme contents #21230

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

ttytm
Copy link
Member

@ttytm ttytm commented Apr 8, 2024

Fixes #21222

Issue in current test:
Screenshot_20240409_001957

Updated:
Screenshot_20240409_002003
Screenshot_20240409_002750

Comment on lines +92 to 100

// Test escape characters like for `&` and `<`
mut arr := [1, 2, 3]
mut ref := &arr
arr << 4

ch := chan bool{cap: 1}
ch <- true
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation in the .ansi and in the .text outputs is also stripped.

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

@spytheman spytheman merged commit 4afeac3 into vlang:master Apr 9, 2024
44 checks passed
@ttytm ttytm deleted the vdoc/fix-escape-chars branch April 9, 2024 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

document generator has some bugs
2 participants