-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Convert newlines to spaces and consider the first sentence ended only if the dot is followed by a space in BaseDoc::extractFirstSentence()
#282
Conversation
source comment: ~~~markdown a URI [RFC3986](https://tools.ietf.org/html/rfc3986) or URI template [RFC6570](https://tools.ietf.org/html/rfc6570). This property is required. ~~~ before fix `BaseDoc::extractFirstSentence()` return: `a URI [RFC3986](https://tools.` after: `a URI [RFC3986](https://tools.ietf.org/html/rfc3986) or URI template [RFC6570](https://tools.ietf.org/html/rfc6570).` is dirty fix, but covering main cases
Co-authored-by: Alexey Rogachev <[email protected]>
Thanks, it's actually 2 fixes in 1, also handles newlines. 👍 |
Co-authored-by: Alexey Rogachev <[email protected]>
@arogachev That's method still incorrect. We can detect summary only by first |
@WinterSilence Thanks. Moved it to a separate issue for now - #283. |
@WinterSilence Thanks for your contribution! 👍 I additionally checked how it affects current API docs using diffs, didn't find any regression. Need to prepare new release now. |
BaseDoc::extractFirstSentence()
BaseDoc::extractFirstSentence()
@arogachev меня удивляет, что такой популярный и, вышедший много лет назад, фреймворк до сих пор настолько сырой |
source comment:
before fix
BaseDoc::extractFirstSentence()
return:a URI [RFC3986](https://tools.
after:
a URI [RFC3986](https://tools.ietf.org/html/rfc3986) or URI template [RFC6570](https://tools.ietf.org/html/rfc6570).
is dirty fix, but covering main cases
Minor additions for historical purposes by @arogachev.
Newline (only affects HTML code, not visual output):
https://github.com/yiisoft/yii2/blob/2874e070f3ad88c727b1335ba4f4515855bf5f64/framework/base/Controller.php#L48-L52
No space after dot: