Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Typealias with generic right-hand side overlaps self #137

Closed
a2 opened this issue Jul 2, 2020 · 5 comments · Fixed by #152
Closed

Typealias with generic right-hand side overlaps self #137

a2 opened this issue Jul 2, 2020 · 5 comments · Fixed by #152
Labels
bug Something isn't working design Functionality with a design component
Milestone

Comments

@a2
Copy link

a2 commented Jul 2, 2020

A typealias to a generic right-hand side overlaps itself as shown here:

Screen Shot 2020-07-02 at 1 25 15 PM

I think it has to do with this CSS rule:

.highlight {
    text-indent: -2em;
}
@mattt mattt added bug Something isn't working design Functionality with a design component labels Jul 14, 2020
@mattt
Copy link
Contributor

mattt commented Jul 14, 2020

Yep, that's no right. Though I'm surprised this is happening at all in this case. Do you happen to have the generated HTML for this handy?

@mattt mattt added this to the 1.0.0-beta.4 milestone Jul 14, 2020
@mattt
Copy link
Contributor

mattt commented Jul 27, 2020

@a2 I believe this should be fixed by #144. Can you please verify this with the latest master? Or alternatively, can you share the original code so that I may try to reproduce it locally?

@a2
Copy link
Author

a2 commented Jul 28, 2020

The original code is from a2/swift-shortcuts (see NameFilter). Not sure how I had configured it before though, besides HTML output.

@mattt
Copy link
Contributor

mattt commented Jul 31, 2020

@a2 Thanks again for submitting this, Alexsander. And thanks also for sharing swift-shortcuts — thanks to its size and interconnectedness, it's a great project to test and benchmark swift-doc. In fact, I discovered a regression in the course of investigating this (#153), which I'm very happy to have in for the forthcoming release.

@a2
Copy link
Author

a2 commented Jul 31, 2020

@mattt That sounds great! Happy to help with swift-doc, albeit indirectly :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working design Functionality with a design component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants