-
Notifications
You must be signed in to change notification settings - Fork 179
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
Handle line-breaks in address field #72
Comments
Line break are allowed in ADR fields: https://tools.ietf.org/html/rfc6350#page-34 |
Hum, I was wrong, the line breaks are only on the LABEL data. Meanwhile, on android stock 6.0, the contact manager doesn't have detailed adr fields. So you have to enter empty lines for it to be displayed correctly. I don't know if there is a good way to do that. |
Obviously, line-breaks are allowed in all
Hence, it is standard-conform to use line-breaks in ADR-fields as shown in my example above.
With "empty lines", do you mean "line-breaks"? |
No \n allowed on ADR properties except from LABEL:
|
Sorry, but I can't see any note that line-breaks are disallowed. Maybe, the standard is ambiguous, here. However, the ABNF clearly allows them. And you noticed already, that for Android clients, it is obvious to use line-breaks for an address. |
I'm reading directly from the vcard rfc. If it says that new lines should be comma (U+002C) in the adr fields, then that's what we should do. Because android doesn't fit the rfc rules doesn't mean we should do the same ;) I don't know why android removed the detailed address fields. I never noticed it before. |
This may affect not only the address field. However, this is the field, where it is annoying. Furthermore, this issue was also reported in owncloud/contacts#519 (without a fix at the moment).
Steps to reproduce
Expected behaviour
The address field should contain the line-break between
Part1
andPart2
.Actual behaviour
The value of the address field is
Part1Part2
, i.e. the line-break is removed. However, the database (oc_cards
andoc_cards_properties
) contains the correct value forADR
:;;Part1\nPart2;;;;
.Server configuration
Operating system: Debian jessie
Web server: Apache 2.4.10
Database: MySQL 5.5.53
PHP version: 5.6.29
Nextcloud version: 10.0.2
Contacts version: 1.5.2
Client configuration
Browser: Firefox ESR 45.6.0
Operating system: Debian jessie
CardDAV-clients: DAVdroid / Android
The text was updated successfully, but these errors were encountered: