-
Notifications
You must be signed in to change notification settings - Fork 133
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
[issue-299] allow single line of text in free form text #300
[issue-299] allow single line of text in free form text #300
Conversation
Todo: adapt docstrings |
Done, ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix! I only noticed 2 typos that we may as well fix
@@ -16,7 +16,7 @@ PackageVerificationCode: SOME code | |||
PackageLicenseDeclared: NOASSERTION | |||
PackageLicenseConcluded: NOASSERTION | |||
PackageLicenseInfoFromFiles: LGPL-2.1-or-later | |||
PackageCopyrightText: <text>Some copyrught</text> | |||
PackageCopyrightText: Some copyrught |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you touch this line, you might as well fix the typo 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are actually 14 occurences of copyrught
in the project :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remember correctly, it was once fixed in a PR, but probably reverted during some merge conflicts or whatever, but I will change this now, it really bothers my inner Monk (not sure if this is the correct translation)..
tests/data/doc_write/tv-simple.tv
Outdated
@@ -16,7 +16,7 @@ PackageVerificationCode: SOME code | |||
PackageLicenseDeclared: NOASSERTION | |||
PackageLicenseConcluded: NOASSERTION | |||
PackageLicenseInfoFromFiles: LGPL-2.1-only | |||
PackageCopyrightText: <text>Some copyrught</text> | |||
PackageCopyrightText: Some copyrught |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
def p_text_or_line_value_1(self, p): | ||
"""text_or_line : TEXT""" | ||
p[0] = p[1] | ||
|
||
def p_text_or_line_value_2(self, p): | ||
"""text_or_line : LINE""" | ||
p[0] = p[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks absurd, but seems to be doing the right thing!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, in the tag-value lexer, a TEXT
is a string (possibly multi-line) enclosed in <text>
, while LINE
is a single line without the tags. Some properties don't allow TEXT
, so there has to be a distinction.
Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
…d validate_is_free_form_text_or_str Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
0b3abc0
to
7513c39
Compare
fixes #299
Signed-off-by: Meret Behrens meret.behrens@tngtech.com