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

Fix parsing definition list term #154

Merged
merged 1 commit into from
Jul 9, 2021
Merged

Conversation

wouterj
Copy link
Collaborator

@wouterj wouterj commented Jul 8, 2021

This is catched by @javiereguiluz and reported in symfony-tools/docs-builder#108 The classifier token should be " : " instead of ":".

Tests are however failing: somehow, a space is lost. Twig renders with the space, but somewhere in the templating logic of this library, we remove the space.. I'm lost on where this happens.

I also removed spaceless. It removes any whitespace between HTML tags, which is not expected for inline HTML tags (it removes any whitespace). In another PR, I'll remove the other usages of spaceless (in symfony-tools/docs-builder#80 (comment) it was concluded that this never has the intended effect)

@greg0ire
Copy link
Member

greg0ire commented Jul 8, 2021

Tests are however failing

🤔 they look pretty good from where I sit… did you write this after seeing the build fail for 0f6d24d, and before it passed for e6205c9 ?

@wouterj
Copy link
Collaborator Author

wouterj commented Jul 8, 2021

Yes, sorry, edited the message. spaceless was the issue here :)

Copy link
Contributor

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

Great! Wouter, thanks a lot for fixing this tricky bug.

@greg0ire greg0ire added the Bug Something isn't working label Jul 9, 2021
@greg0ire greg0ire changed the base branch from 0.5.x to 0.4.x July 9, 2021 18:22
@greg0ire greg0ire added this to the 0.4.1 milestone Jul 9, 2021
The classifier token should be " : " instead of ":"
@greg0ire greg0ire merged commit 55253fc into doctrine:0.4.x Jul 9, 2021
@greg0ire
Copy link
Member

greg0ire commented Jul 9, 2021

Thanks @wouterj !

@wouterj wouterj deleted the sf-108 branch September 28, 2021 12:36
wouterj added a commit to wouterj/phpDocumentor that referenced this pull request Apr 9, 2022
The separator is " : ", and not only a colon. See also doctrine/rst-parser#154
jaapio pushed a commit to phpDocumentor/guides that referenced this pull request Apr 12, 2022
The separator is " : ", and not only a colon. See also doctrine/rst-parser#154
phpdoc-bot pushed a commit to phpDocumentor/guides-restructured-text that referenced this pull request Apr 12, 2022
The separator is " : ", and not only a colon. See also doctrine/rst-parser#154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants